Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

how to create a matrix from another

1 vue (au cours des 30 derniers jours)
Kalpha.mc
Kalpha.mc le 20 Sep 2020
Clôturé : MATLAB Answer Bot le 20 Août 2021
How would i create a matrix that is the last column and the 2nd and 4th row of matrix x?

Réponses (2)

Ameer Hamza
Ameer Hamza le 20 Sep 2020
Modifié(e) : Ameer Hamza le 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 le 20 Sep 2020

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by