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

4 ビュー (過去 30 日間)
chan
chan 2016 年 2 月 1 日
編集済み: Stephen23 2016 年 2 月 1 日
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 件のコメント
Stephen23
Stephen23 2016 年 2 月 1 日
編集済み: Stephen23 2016 年 2 月 1 日
5:-1:2
Did you try this?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by