pulling our elements from a matrix using for loop

1 visualización (últimos 30 días)
PetronasAMG
PetronasAMG el 26 de Feb. de 2018
Respondida: Star Strider el 26 de Feb. de 2018
if matrix A = [1 3 4 2 17 6 4 5 2]
what is a matrix command that i can use it to pull first 6 elements?

Respuesta aceptada

Star Strider
Star Strider el 26 de Feb. de 2018
Try this:
B = A(1:6);

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays 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