how to fill an array with data from intercalated/multiple range columns
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hugo
el 4 de Mzo. de 2022
Editada: Davide Masiello
el 4 de Mzo. de 2022
Hi,
I have a matrix A, with dimensions 4000*50. I would like to select lines 1 to 2000 (1st dimension) and columns 1 to 40 and 42 to 50 to fill an array. Is there any operation/method that allows me to do it at once, avoiding the need of the function "cat". I know I can select lines 1 to 2000 and all columns to fill my array A1:
A1=A(1:2000,:)
However, I am unsure if this method/operation support intercalations, as per my requirements. Any help is appreciated.
I thank you in advance,
Best regards,
0 comentarios
Respuesta aceptada
Davide Masiello
el 4 de Mzo. de 2022
Editada: Davide Masiello
el 4 de Mzo. de 2022
A1 = A(1:2000,[1:40,42:50]);
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Multidimensional Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!