フィルターのクリア

help!! not using repmat()

1 回表示 (過去 30 日間)
gmltn1212
gmltn1212 2020 年 6 月 22 日
編集済み: Matt J 2020 年 6 月 22 日
I am trying to not use repmat() because I want to actually understand what is going on with this...
arr = [a b; c d]
row = 2;
col = 3;
I want to return this value..
new = [a b a b a b
c d c d c d
a b a b a b
c d c d c d]
I feel like I have to use forloop in order to solve this but I dont have a clear idea...
  1 件のコメント
madhan ravi
madhan ravi 2020 年 6 月 22 日
Why not just admit it’s a homework?

サインインしてコメントする。

採用された回答

Matt J
Matt J 2020 年 6 月 22 日
編集済み: Matt J 2020 年 6 月 22 日
Another option would be,
kron(ones(row,col),arr)

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by