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!