Function that deletes a row in a matrix

2 visualizaciones (últimos 30 días)
zshockz
zshockz el 10 de Oct. de 2016
Respondida: Adam el 10 de Oct. de 2016
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?

Respuesta aceptada

Adam
Adam el 10 de Oct. de 2016
mat = rand(3);
n = 2;
mat(2,:) = [];

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by