Respected Sir, Simply I want to know the process how this is done in matlab for higher order matrix---
[1 2 3 [1 1 1 2 2 2 3 3 3
4 5 6 to 1 1 1 2 2 2 3 3 3
7 8 9 ] 1 1 1 2 2 2 3 3 3
4 4 4 5 5 5 6 6 6
4 4 4 5 5 5 6 6 6
4 4 4 5 5 5 6 6 6
7 7 7 8 8 8 9 9 9
7 7 7 8 8 8 9 9 9
7 7 7 8 8 8 9 9 9]
how it can be done for higher order matrix?? Please Reply. Your's Faithfully
Arnab Chattaraj.

 採用された回答

Andrei Bobrov
Andrei Bobrov 2016 年 3 月 15 日
編集済み: Andrei Bobrov 2016 年 3 月 15 日

0 投票

a = reshape(1:9,3,[])';
out = kron(a,ones(3));
or
out = repelem(A,3,3)

1 件のコメント

ARNAB CHATTARAJ
ARNAB CHATTARAJ 2016 年 3 月 15 日
thank you very much

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by