How do I index this array?

5 ビュー (過去 30 日間)
Harriet Branson
Harriet Branson 2018 年 2 月 21 日
回答済み: Walter Roberson 2018 年 2 月 21 日
I need to produce an array (C) from A and B listed below, but C (the new array) must have these numbers:
if true
C =
1 2
5 8
9 10
end
How do I do this?
if true
A =
5 8 3
1 2 3
2 4 6
B =
7 6 8
8 9 10
7 3 2
3 0 2
end
  2 件のコメント
KSSV
KSSV 2018 年 2 月 21 日
Whats the relation between A, B and C?
Harriet Branson
Harriet Branson 2018 年 2 月 21 日
A and B have the numbers to make C. The question on my paper is asking me to produce matrix C from A and B

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

採用された回答

Walter Roberson
Walter Roberson 2018 年 2 月 21 日
This is just a bunch of indexing of arrays like A(2:3,1) along with using [] and some comma and semicolon and a .' or two.

その他の回答 (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