getting error in for loop
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Sam Chak
le 30 Mai 2022
Have you checked if your array indices are positive integers or logical values?
Réponses (2)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!