Pull the data from matrix

Create a 6x6 matrix with matlab. Explain by writing how you pulled the data in the 2nd column and 3rd row from the matrix you created.
I'm asked to do this example. I am a total beginner so I hope that someone help me to understand and answer me.
A = [15 2 4 6 5 3 ;
3 7 11 9 8 1 ;
1 2 9 1 5 3 ;
7 3 12 5 8 2 ;
9 22 4 2 5 1 ;
12 22 5 3 10 4 ]
a32 = A(3,2)
Is this the correct way for getting the data from a matrix?

3 件のコメント

dpb
dpb 2021 年 6 月 13 日
編集済み: dpb 2021 年 6 月 13 日
One of the many, yes.
I suggest the OnRamp course or reading the "Getting Started" tutorial in the documentation -- it explains all in basic steps starting from ground zero...
zet zuma
zet zuma 2021 年 6 月 13 日
Thanks a lot
Adam Danz
Adam Danz 2021 年 6 月 13 日
For this particular question, all you need to know is in the documentation: Matrix indexing in Matlab.
The order of dimensions when indexing is row, column, page (for 3D arrays), 4th dimension, 5th dimension, ..., .n^th dimension.

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

回答 (0 件)

カテゴリ

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

質問済み:

2021 年 6 月 13 日

編集済み:

2021 年 6 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by