Copy particular column from an array
12 ビュー (過去 30 日間)
古いコメントを表示
Hi I have an a matrix Y = [ 1 1 1 1 1; 2 3 4 5 6].
How do I copy just the first three values in column 2 into a new matrix
X = [2 3 4]
0 件のコメント
回答 (1 件)
Azzi Abdelmalek
2015 年 7 月 17 日
編集済み: Azzi Abdelmalek
2015 年 7 月 17 日
Y(1:3,2)
Read the documentation http://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!