get same column of matrix automatically.
古いコメントを表示
I want to get same column 'automatically'.
example,
A = [ 1 2 3 4 5] 1X5
B = [ 3 4 2 ] 1X3
I want to get 1X10 matrixs of A,B. (regardless of value)
outcome,
A = [ 1 2 3 4 5 0 0 0 0 0 ]
B = [ 3 4 2 0 0 0 0 0 0 0 ]
採用された回答
その他の回答 (1 件)
Mischa Kim
2015 年 1 月 30 日
Heo, how about simply
A = [A zeros(1,10-numel(A))]
for example.
カテゴリ
ヘルプ センター および File Exchange で Data Types についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!