How to copy values from one array to empty array using 'for'?

조회 수: 10 (최근 30일)
Merlyn Inova
Merlyn Inova 2020년 5월 8일
댓글: Merlyn Inova 2020년 5월 14일
I have an nx2-sized array. I want to move some values in that array to a new array (empty array) with 'for'. How do I do this? Thanks
  댓글 수: 2
KSSV
KSSV 2020년 5월 8일
If you have indices idx of the array..you can copy them
iwant = myarray(idx,:) ;
Merlyn Inova
Merlyn Inova 2020년 5월 14일
Thank you very much.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by