Function that deletes a row in a matrix

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 件)

カテゴリ

タグ

質問済み:

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