フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

What this indexing error all about in my matlab program. please help.

1 回表示 (過去 30 日間)
Virajan Verma
Virajan Verma 2018 年 10 月 25 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
%%Transpose of N_matrix
for i=1:26
for j=1:8
NT_matrix(i,j)=(N_matrix((i-1),j));(ERROR HERE)
end
end
Attempted to access N_matrix(0,1); index must be a positive integer or logical.
Error in practisee2 (line 367) NT_matrix(i,j)=(N_matrix((i-1),j))

回答 (1 件)

Kevin Chng
Kevin Chng 2018 年 10 月 25 日
indexing must be positive integer, don't allow zero or floating.
When i =1, then i-1 =0, then
N_matrix((0),j)
it cause the error.

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by