i have to find 1000 E matrix of order (12,1)? why am i getting all 999 matrixes of E empty?

2 次查看(过去 30 天)
% Calculation of Y
N=1000;
E=cell(1,N);
Y=zeros(12,1);
for i=1:N
for k=1:12
Y(k,1)=(C{i}(k))\(B{i}(k));
end
end
E{i}=Y;

采纳的回答

Walter Roberson
Walter Roberson 2021-10-3
Your should be assigning to E{i} inside the loop.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by