Change all elements in 2nd column to 3
1 回表示 (過去 30 日間)
古いコメントを表示
vArr = [ 5 5 5 5; 5 5 5 5 ; 5 5 5 5; 5 5 5 5; 5 5 5 5 ]
so i have this and i knw how to change one element but how to change whole colum??
i tired this vArr( :, 3 ) - 2 but then only shows one column
1 件のコメント
回答 (1 件)
James Tursa
2019 年 9 月 27 日
編集済み: James Tursa
2019 年 9 月 27 日
vArr(:,2) = _____; % <-- you fill in the blank
6 件のコメント
参考
カテゴリ
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!