how to write for(i=count;i>1;i--) in matlab.

4 vues (au cours des 30 derniers jours)
chan
chan le 1 Fév 2016
Modifié(e) : Stephen23 le 1 Fév 2016
If I write like for i=5:-1:1 I got the value 54321 But I want to avoid 1 in the output.how to write syntax in matlab for this condition for(i=count;i>1;i--)
  1 commentaire
Stephen23
Stephen23 le 1 Fév 2016
Modifié(e) : Stephen23 le 1 Fév 2016
5:-1:2
Did you try this?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB Compiler 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!

Translated by