Info
This question is closed. Reopen it to edit or answer.
how to increase the a column matrix of 780 elements in to 780X780 matrix withthe same elements..??
1 view (last 30 days)
Show older comments
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 Comments
Answers (1)
Azzi Abdelmalek
on 14 Feb 2014
Edited: Azzi Abdelmalek
on 14 Feb 2014
repmat(c1,1,780)
%Example
c1=[1;2;3;4] % Example
out=repmat(c1,1,numel(c1))
1 Comment
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!