Info
此问题已关闭。 请重新打开它进行编辑或回答。
how to create a matrix from another
1 次查看(过去 30 天)
显示 更早的评论
How would i create a matrix that is the last column and the 2nd and 4th row of matrix x?
0 个评论
回答(2 个)
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.
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!