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!