Borrar filtros
Borrar filtros

add column of zeros at end of matrix?

50 visualizaciones (últimos 30 días)
Evan Charlesworth
Evan Charlesworth el 14 de Oct. de 2018
Respondida: Walter Roberson el 14 de Oct. de 2018
I have one matrix that I'm trying to add a column of zeros at the beginning and end of, but so far I can only figure out how to add the column of zeros at the beginning.

Respuestas (1)

Walter Roberson
Walter Roberson el 14 de Oct. de 2018
zc = zeros(size(YourMatrix,1),1);
newmatrix = [zc, YourMatrix, zc];

Categorías

Más información sobre Word games 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