i want select the first and second array s(i) in the loop

1 回表示 (過去 30 日間)
fatemeh
fatemeh 2013 年 10 月 19 日
編集済み: Azzi Abdelmalek 2013 年 10 月 19 日
actually s(i)s are produced in the loop over and over i want the two first entry of this array each time that pass loop...

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 10 月 19 日
編集済み: Azzi Abdelmalek 2013 年 10 月 19 日
Just create a new counter and a new variable to store your data. At the end of yourloop add
new_var(k,1:2)=s(1:2)

その他の回答 (1 件)

Image Analyst
Image Analyst 2013 年 10 月 19 日

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by