Clear Filters
Clear Filters

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

2 views (last 30 days)
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...

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 19 Oct 2013
Edited: Azzi Abdelmalek on 19 Oct 2013
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)

More Answers (1)

Image Analyst
Image Analyst on 19 Oct 2013

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!