Info
この質問は閉じられています。 編集または回答するには再度開いてください。
how to increase the a column matrix of 780 elements in to 780X780 matrix withthe same elements..??
1 回表示 (過去 30 日間)
古いコメントを表示
i have a column matrix of 780 elements, but i want to increase it in to 780X780 size,but its columns should be the repetition of the first column..
0 件のコメント
回答 (1 件)
Azzi Abdelmalek
2014 年 2 月 14 日
編集済み: Azzi Abdelmalek
2014 年 2 月 14 日
repmat(c1,1,780)
%Example
c1=[1;2;3;4] % Example
out=repmat(c1,1,numel(c1))
1 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!