필터 지우기
필터 지우기

cannot call or index into a temporary array

조회 수: 1 (최근 30일)
VAIDEKH RAJENDRAN SALEEMA
VAIDEKH RAJENDRAN SALEEMA 2017년 3월 19일
편집: Walter Roberson 2017년 3월 19일
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

답변 (1개)

GEEVARGHESE TITUS
GEEVARGHESE TITUS 2017년 3월 19일
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}.

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by