can't understand this statement

조회 수: 7 (최근 30일)
Naveedur Rahman
Naveedur Rahman 2022년 4월 4일
답변: Davide Masiello 2022년 4월 4일
is this possible
b(1:2,3)

답변 (1개)

Davide Masiello
Davide Masiello 2022년 4월 4일
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

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by