Getting an indexing error in my matlab program. Please help.

조회 수: 2 (최근 30일)
Virajan Verma
Virajan Verma 2018년 10월 15일
댓글: KSSV 2018년 10월 15일
for i=0:8
for j=0:27
N_matrix(i)(j)=0;(ERROR HERE)
end
end
()-indexing must appear last in an index expression.

채택된 답변

KSSV
KSSV 2018년 10월 15일
for i=1:8
for j=1:27
N_matrix(i,j)=0;(ERROR HERE)
end
end
  댓글 수: 6
Virajan Verma
Virajan Verma 2018년 10월 15일
Yes. I have a C code.
KSSV
KSSV 2018년 10월 15일
YOu ay find it useful :<https://in.mathworks.com/matlabcentral/answers/91303-how-to-convert-a-code-from-c-language-to-matlab>

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by