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..

답변 (1개)

Azzi Abdelmalek
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))

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by