How can i extract sub matrix from basic matrix

871 views (last 30 days)
Hello. My basic matrix is
Sub matrix is A

Accepted Answer

Walter Roberson
Walter Roberson on 7 Jun 2013
A = B(1:4, 1:3);
welzheimerwald on 2 Apr 2022
@Dulam Sai Namratha Naidu it generates a 4x3 sub matrix of matrix B with rows 1,2,3,4 and colums 1,2,3 from matrix B.

Sign in to comment.

More Answers (1)

Navadeep Ganesh U
Navadeep Ganesh U on 1 Dec 2019
Edited: Navadeep Ganesh U on 1 Dec 2019
means, We need to extract B's 1st 2nd and 3rd row along with B's 1st 2nd and 3rd column.
By this you can get approprite answer.
It can also be written as A=B([1:3],[1:3])
LoL,...............6yrs later

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!