Why is matlab busy?
Mostra commenti meno recenti
I'm trying a basic script and working some things out for a base on a much more compliacted script, but for some reason MATLAB can't run the whole script and stays busy and never finishes? The script says there's nothing wrong with it so I just don't understand why it is forever busy.
Script:
r = ones(1,10);
i = 1;
while i <= length(r)
r(i) = 0;
i = 1+1;
end
it does the first two elements then stops.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Get Started with MATLAB 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!