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

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 件)

カテゴリ

ヘルプ センター および File ExchangeData Types についてさらに検索

タグ

質問済み:

2020 年 5 月 8 日

コメント済み:

2020 年 5 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by