extraction of some elements in a column vector

1 visualización (últimos 30 días)
Dawud Adam Rabiu
Dawud Adam Rabiu el 10 de Nov. de 2021
Comentada: Cris LaPierre el 11 de Nov. de 2021
x = [1:10]'
how do i extract the 1st, 3rd and 6xth element in the column vector.
  2 comentarios
dpb
dpb el 10 de Nov. de 2021
y=x([1 3 6]);
Read Getting Started section on addressing in the documentation...
Cris LaPierre
Cris LaPierre el 11 de Nov. de 2021
Or go through Ch 5 of MATLAB Onramp.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox 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