getting error in for loop
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Array indices must be positive integers or logical values.
Error in Untitled4 (line 27)
Idsat(i)=r1*(Vgs-(r2)+Vds(i));
for i=0:length(Vds)
Idsat(i)=r1*(Vgs-(r2)+Vds(i));
end
1 Commento
Sam Chak
il 30 Mag 2022
Have you checked if your array indices are positive integers or logical values?
Risposte (2)
Vedere anche
Categorie
Scopri di più su Loops and Conditional Statements in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!