So I have a simple 3 by 3 matrix that I need to make a function that is able to delete any row in the matrix, any suggestions?

 채택된 답변

Adam
Adam 2016년 10월 10일

0 개 추천

mat = rand(3);
n = 2;
mat(2,:) = [];

추가 답변 (0개)

카테고리

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

태그

질문:

2016년 10월 10일

답변:

2016년 10월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by