Write in column of matrix
20 ビュー (過去 30 日間)
古いコメントを表示
Hi i wanna write on specific column of matrix. I think it should be like this
A[:,1]=A(i)
but it does not works.tnx
0 件のコメント
採用された回答
Yongjian Feng
2021 年 11 月 28 日
編集済み: Yongjian Feng
2021 年 11 月 28 日
Left hand side A is a matrix, but right hand side also an A as a array? Also left hand side shall be
A(:, 1)
Try this:
A = zeros(2,3);
A(:,1) = [8;9]; % A(:,1) is volumn vector of size 2
A
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!