필터 지우기
필터 지우기

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

조회 수: 2 (최근 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 CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by