I want to convert a column matrix of size 10x1 to 10x10000 matrix in which all columns in the converted matrix are same as the values in the initial column matrix,
For example, x=[a;b;c], if i convert this to a 3x3 matrix, it should be [a a a; b b b; c c c]

 採用された回答

KSSV
KSSV 2017 年 4 月 4 日
編集済み: KSSV 2017 年 4 月 4 日

0 投票

doc repmat
x = [1 2 3] ;
iwant = repmat(x,3,1)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeResizing and Reshaping Matrices についてさらに検索

製品

タグ

質問済み:

2017 年 4 月 4 日

編集済み:

2017 年 4 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by