Function that deletes a row in a matrix

3 ビュー (過去 30 日間)
zshockz
zshockz 2016 年 10 月 10 日
回答済み: Adam 2016 年 10 月 10 日
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 日
mat = rand(3);
n = 2;
mat(2,:) = [];

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by