답변 (1개)

Walter Roberson
Walter Roberson 2022년 10월 28일

0 개 추천

Example:
YourMatrix = magic(5)
YourMatrix = 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
SomeVariable = YourMatrix(1, 4:5) %copy last 2 elements of the first row
SomeVariable = 1×2
8 15
SomeOtherVariable = YourMatrix(3, [2 4]) %copy 2nd and 4th elements of the third row
SomeOtherVariable = 1×2
6 20

카테고리

도움말 센터File Exchange에서 NaNs에 대해 자세히 알아보기

태그

질문:

2022년 10월 28일

답변:

2022년 10월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by