Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

how to create a matrix from another

1 Ansicht (letzte 30 Tage)
Kalpha.mc
Kalpha.mc am 20 Sep. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
How would i create a matrix that is the last column and the 2nd and 4th row of matrix x?

Antworten (2)

Ameer Hamza
Ameer Hamza am 20 Sep. 2020
Bearbeitet: Ameer Hamza am 20 Sep. 2020
M = x(:, [end 2 4])
This is pretty basic stuff in MATLAB and you have other similar questions too. I ssuggest you to read about array indexing: https://www.mathworks.com/help/matlab/math/array-indexing.html.

Bruno Luong
Bruno Luong am 20 Sep. 2020
x([2 4], end)

Diese Frage ist geschlossen.

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by