フィルターのクリア

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

1 回表示 (過去 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.
  1 件のコメント
KSSV
KSSV 2018 年 10 月 15 日
Indices of MATLAB start from 1

サインインしてコメントする。

採用された回答

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 Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by