Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to create a matrix from another

1 回表示 (過去 30 日間)
Kalpha.mc
Kalpha.mc 2020 年 9 月 20 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
How would i create a matrix that is the last column and the 2nd and 4th row of matrix x?

回答 (2 件)

Ameer Hamza
Ameer Hamza 2020 年 9 月 20 日
編集済み: Ameer Hamza 2020 年 9 月 20 日
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 2020 年 9 月 20 日
x([2 4], end)

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by