Hi! I just need a simple code displaying a submatrix (I guess there is no need to create it by extracting from matrix, I just need to display certain values - rows from 3 to 5 and columns from 2 to 6).
Thanks!

답변 (1개)

Birdman
Birdman 2018년 4월 3일
편집: Birdman 2018년 4월 3일

0 개 추천

A(3:5,2:6)
or
disp(A(3:5,2:6))

댓글 수: 1

Birdman
Birdman 2018년 4월 3일
Karolina's answer moved here:
Great! Thank you! :))

댓글을 달려면 로그인하십시오.

카테고리

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

태그

질문:

2018년 4월 3일

댓글:

2018년 4월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by