Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

how to create a matrix from another

1 visualización (últimos 30 días)
Kalpha.mc
Kalpha.mc el 20 de Sept. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
How would i create a matrix that is the last column and the 2nd and 4th row of matrix x?

Respuestas (2)

Ameer Hamza
Ameer Hamza el 20 de Sept. de 2020
Editada: Ameer Hamza el 20 de Sept. de 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 el 20 de Sept. de 2020
x([2 4], end)

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by