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

10 Ansichten (letzte 30 Tage)
Merlyn Inova
Merlyn Inova am 8 Mai 2020
Kommentiert: Merlyn Inova am 14 Mai 2020
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 Kommentare
KSSV
KSSV am 8 Mai 2020
If you have indices idx of the array..you can copy them
iwant = myarray(idx,:) ;

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by