Beginner Question 5x5 Matrix

I am a beginner user for Matlab. I am working on easy problems right know but i'm in stuck one of them.
Question- Create the following matrix by typing two commands.

6 件のコメント

Stephen23
Stephen23 2021 年 11 月 5 日
Kutay Furkan AKALIN
Kutay Furkan AKALIN 2021 年 11 月 5 日
i tried zeros command and defined a function for summation but i already used 3 commands for do this. I am trying to do this with multiplication and summation but again i am using 3 commands. I think i cant do that with multiplication etc.
Sudharsana Iyengar
Sudharsana Iyengar 2021 年 11 月 5 日
Check if this works.
E=zeros(5,5);
E(3:5,3:5)=[1,2,3;4,5,6;7,8,9]
E = 5×5
0 0 0 0 0 0 0 0 0 0 0 0 1 2 3 0 0 4 5 6 0 0 7 8 9
Kutay Furkan AKALIN
Kutay Furkan AKALIN 2021 年 11 月 5 日
Thank you so much @Sudharsana Iyengar
Kutay Furkan AKALIN
Kutay Furkan AKALIN 2021 年 11 月 5 日
No i dont know these people.

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

回答 (1 件)

Sudharsana Iyengar
Sudharsana Iyengar 2021 年 11 月 5 日

0 投票

@Kutay Furkan AKALIN consider accepting answer so that it is closed.
@Steven Lord that is an amazing discovery.

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

製品

リリース

R2021b

タグ

質問済み:

2021 年 11 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by