Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
% 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;

Respuesta aceptada

Walter Roberson
Walter Roberson el 3 de Oct. de 2021
Your should be assigning to E{i} inside the loop.

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by