From vector to matrix

9 ビュー (過去 30 日間)
dpr
dpr 2012 年 5 月 27 日
Hi,
I have a vector of size (1,60) and I want to convert it into a matrix of size (100,60), in wich every row is my initial vector. Can anyone tell me how to do it?
thanks.

採用された回答

Oleg Komarov
Oleg Komarov 2012 年 5 月 27 日
If A is your vector, then:
repmat(A,1,100)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by