How do I isolate a specific column within a vector
3 ビュー (過去 30 日間)
古いコメントを表示
Hi Guys,
How do i isolate a specific column within a vector? Like, how do i extract the 4th column only from a 5x5 matrix? What do i code to specifcally get the 4th column values to be presented as a new vector?
TIA
0 件のコメント
採用された回答
Atsushi Ueno
2021 年 12 月 8 日
x = rand(5,5)
y = x(:,4) % extract the 4th column only from a 5x5 matrix
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!