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

조회 수: 4 (최근 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