extraction of some elements in a column vector

1 vue (au cours des 30 derniers jours)
Dawud Adam Rabiu
Dawud Adam Rabiu le 10 Nov 2021
Commenté : Cris LaPierre le 11 Nov 2021
x = [1:10]'
how do i extract the 1st, 3rd and 6xth element in the column vector.
  2 commentaires
dpb
dpb le 10 Nov 2021
y=x([1 3 6]);
Read Getting Started section on addressing in the documentation...
Cris LaPierre
Cris LaPierre le 11 Nov 2021
Or go through Ch 5 of MATLAB Onramp.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Deep Learning Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by