Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Error in my matlab program regarding value of an index. Help.
1 回表示 (過去 30 日間)
古いコメントを表示
for i=1:9
N_matrix(1,i)=N(rem(i,3))*ex(i/3);(ERROR HERE)
end
Attempted to access ex(0.333333); index must be a positive integer or logical.
Error in practisee3 (line 9) N_matrix(1,i)=N(rem(i,3))*ex(i/3);
8 件のコメント
Kevin Chng
2018 年 10 月 15 日
編集済み: Kevin Chng
2018 年 10 月 15 日
why do you want to do i/3 for ex if it is a matrix? because 1/3 won't be 1 for your first iteration.
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!