Info
此问题已关闭。 请重新打开它进行编辑或回答。
how can i get Tdim{i}(1) non zero while starting the value of k=2:12 ?
1 次查看(过去 30 天)
显示 更早的评论
the result is follows
Tdim{1}
ans =
0
0.6749
0.6941
0.7265
0.7709
0.8180
0.8412
0.8180
0.7709
0.7265
0.6941
0.6749
here is the main code
N=1000;
Tdim=cell(1,N);
for i=1:N
F=zeros(12,1);
for k=2:12
F(k,:)=1+(Y{i}(1)).*log(Rs{i}(k))+(Y{i}(k))*((Rs{i}(k)).^(k-1)-(Rs{i}(k)).^(k-1)).*cos((k-1).*g(k));
end
Tdim{i}=F;
end
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!