i want select the first and second array s(i) in the loop
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
fatemeh
am 19 Okt. 2013
Bearbeitet: Azzi Abdelmalek
am 19 Okt. 2013
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...
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 19 Okt. 2013
Bearbeitet: Azzi Abdelmalek
am 19 Okt. 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)
0 Kommentare
Weitere Antworten (1)
Image Analyst
am 19 Okt. 2013
Then just refer to s(1) and s(2), or s(1:2), otherwise, try this: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
0 Kommentare
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!