row vector and column vector addition
古いコメントを表示
I dont understand why I'm able to add rowvector w to columnvector v. I should get an error right?
w = [1 2 3];
v = [4;5;6];
x = v + w
x =
5 6 7
6 7 8
7 8 9
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Code Performance についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!