getting error in for loop
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Sam Chak
am 30 Mai 2022
Have you checked if your array indices are positive integers or logical values?
Antworten (2)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!