Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

how to create a matrix from another

1 visualizzazione (ultimi 30 giorni)
Kalpha.mc
Kalpha.mc il 20 Set 2020
Chiuso: MATLAB Answer Bot il 20 Ago 2021
How would i create a matrix that is the last column and the 2nd and 4th row of matrix x?

Risposte (2)

Ameer Hamza
Ameer Hamza il 20 Set 2020
Modificato: Ameer Hamza il 20 Set 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 il 20 Set 2020
x([2 4], end)

Questa domanda è chiusa.

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by