Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Error in my matlab program regarding value of an index. Help.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Kevin Chng
il 15 Ott 2018
Modificato: Kevin Chng
il 15 Ott 2018
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.
Risposte (0)
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!