can't understand this statement

1 Ansicht (letzte 30 Tage)
Naveedur Rahman
Naveedur Rahman am 4 Apr. 2022
Beantwortet: Davide Masiello am 4 Apr. 2022
is this possible
b(1:2,3)

Antworten (1)

Davide Masiello
Davide Masiello am 4 Apr. 2022
Yes, it extracts the terms on column 3 and rows 1 and 2 of b.
Example
b = magic(5)
b = 5×5
17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 12 19 21 3 11 18 25 2 9
b(1:2,3)
ans = 2×1
1 7

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by