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

1 次查看(过去 30 天)
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 个评论
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 中查找有关 Programming 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by