how can i get Tdim{i}(1) non zero while starting the value of k=2:12 ?

This question was flagged by Ronit
  • Flagged as Duplicate by Ronit on 16 Aug 2024.

    This question is duplicated to https://www.mathworks.com/matlabcentral/answers/1468231

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

Answers (0)

This question is closed.

Asked:

on 4 Oct 2021

Closed:

DGM
on 24 Sep 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!