フィルターのクリア

How to extend a row vector so the result is a table?

2 ビュー (過去 30 日間)
goyanks1989
goyanks1989 2016 年 5 月 9 日
回答済み: Azzi Abdelmalek 2016 年 5 月 9 日
I have 1 x 1200 row vector and need to extend each column down 1200 spots so that the result is a 1200 x 1200 table with the same values of x
So for example:
4 3 1 2
would become
4 3 1 2
''''''''
. . . .
. . . .
x 1200
4 3 1 2

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 5 月 9 日
a=[4 3 1 2]
b=repmat(a,1200,1)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by