Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Getting an "index out of bounds error" in my Matlab program. Help.
1 回表示 (過去 30 日間)
古いコメントを表示
ex(1)=lx/J %%first i term in ex matrix
ex(2)=mx/J %%second j term in ex matrix
ex(3)=nx/J %%third k term in ex matrix
for i=1:8
for j=1:27
N_matrix(i,j)=0;
end
end
for i=1:9
N_matrix(1,i)=N(rem(i-1,3)+1)*ex(i)/3;(ERROR HERE)
end
Attempted to access ex(4); index out of bounds because numel(ex)=3.
Error in practisee2 (line 227)
N_matrix(1,i)=N(rem(i-1,3)+1)*ex(i)/3
1 件のコメント
KSSV
2018 年 10 月 16 日
@ Virajan Verma It is not fair to ask every step a question in forum. I suggest/ advice you to read basic tutorials of MATLAB which is very easy
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!