repeating a for loop
Mostra commenti meno recenti
Res=input ('Enter the resistance values in ohm,R1 to Rn,values must be positive and real > ');
for i=1:1:n
if Res(1,i)<0 | imag(Res(1,i))~=0
Res=input ('Enter the resistance values in ohm,R1 to Rn,values must be positive and real > ');
end
end
how to make this code repeat from the begining from the bigginig if statement is true
1 Commento
Bilal Bukhary
il 17 Apr 2020
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Dynamic System Models in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!