extraction of some elements in a column vector

1 Ansicht (letzte 30 Tage)
Dawud Adam Rabiu
Dawud Adam Rabiu am 10 Nov. 2021
Kommentiert: Cris LaPierre am 11 Nov. 2021
x = [1:10]'
how do i extract the 1st, 3rd and 6xth element in the column vector.
  2 Kommentare
dpb
dpb am 10 Nov. 2021
y=x([1 3 6]);
Read Getting Started section on addressing in the documentation...
Cris LaPierre
Cris LaPierre am 11 Nov. 2021
Or go through Ch 5 of MATLAB Onramp.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by