creating a matrix from a vector
17 ビュー (過去 30 日間)
古いコメントを表示
I have a vector v2=linspace(-30,10,100)
I want to create a matrix M1 that has three columns, each of which is v2 and another matrix M2 that has three rows, each of which is the transpose of v2. I am lost on how to solve this problem. Please help.
0 件のコメント
採用された回答
Bruno Luong
2020 年 9 月 8 日
編集済み: Bruno Luong
2020 年 9 月 8 日
v2=linspace(-30,10,100) % This iis a ROW vector not column
M1 = [v2.', v2.', v2.']
M2 = [v2; v2; v2]
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!