cannot call or index into a temporary array
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
VAIDEKH RAJENDRAN SALEEMA
el 19 de Mzo. de 2017
Editada: Walter Roberson
el 19 de Mzo. de 2017
for i=1:L-1 nr(i,:)=sqrt(n/2){randn(1,1000)+sqrt(-1)*randn(1,1000)}; end
this is my code and showing the error on call index nto a temporary array
0 comentarios
Respuestas (1)
GEEVARGHESE TITUS
el 19 de Mzo. de 2017
Though your question is not clear, on what your requirement is, I have a made a change that computes the value nr
L=10;
n=10;
for i=1:L-1
nr(i,:)=sqrt(n/2).*(randn(1,1000)+sqrt(-1)*randn(1,1000));
end
When you are using curly brackets it means that you are planning to access a cell given by an index, for example c{1} or can be c{i}.
0 comentarios
Ver también
Categorías
Más información sobre Matrices and Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!