フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to increase the a column matrix of 780 elements in to 780X780 matrix withthe same elements..??

1 回表示 (過去 30 日間)
prajith kc
prajith kc 2014 年 2 月 14 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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