I am trying to learn and practice some Matlab, this is one of the test yourself questions and I am just not able to understand how exactly I can do this. If anyone is able to explain I will appreciate it. Thank you

 採用された回答

KSSV
KSSV 2020 年 9 月 15 日
編集済み: KSSV 2020 年 9 月 15 日

0 投票

A = rand(3) ;
B = rand(4) ;
m = size(A,1) ;
n = size(B,1) ;
O1 = zeros(m,n) ;
O2 = zeros(n,m) ;
iwant = [A O1; O2 B] ;
OR
A = rand(3) ;
B = rand(4) ;
m = size(A,1) ;
n = size(B,1) ;
C = zeros(m+n) ;
C(1:m,1:m) = A ;
C(m+1:end,m+1:end) = B ;

1 件のコメント

Dieter Ziemkendorf
Dieter Ziemkendorf 2020 年 9 月 15 日
Thanks very much, I now see what i was doing wrong.

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

その他の回答 (0 件)

カテゴリ

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

製品

リリース

R2020a

質問済み:

2020 年 9 月 15 日

編集済み:

2020 年 9 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by