I have a 12*12 matrix and i want to convert it into 9*9 matrix by eleminating first two colum and first two row and also the forth colum and row, which will leave me a 9*9 matrix. i want to remove 1,2 and 4 column and row from 12*12 matrix?

 채택된 답변

Alan Stevens
Alan Stevens 2020년 11월 24일

0 개 추천

Supposing M is the 12x12 matrix, then
M([1,2,4],:)=[];
M(:,[1,2,4])=[];
should remove the appropriate rows and columns.

댓글 수: 2

Nikhil Kelaginmath
Nikhil Kelaginmath 2020년 11월 24일
Thank you for your answer
i want to to use both the matrix but now i am getting M as 9*9, how to i name 9*9 a new matrix?
Alan Stevens
Alan Stevens 2020년 11월 24일
First set, say, N = M, then reduce N to 9x9.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

질문:

2020년 11월 24일

댓글:

2020년 11월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by