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

9 visualizaciones (últimos 30 días)
Merlyn Inova
Merlyn Inova el 8 de Mayo de 2020
Comentada: Merlyn Inova el 14 de Mayo de 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 comentarios
KSSV
KSSV el 8 de Mayo de 2020
If you have indices idx of the array..you can copy them
iwant = myarray(idx,:) ;
Merlyn Inova
Merlyn Inova el 14 de Mayo de 2020
Thank you very much.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by