Azzera filtri
Azzera filtri

add column of zeros at end of matrix?

51 visualizzazioni (ultimi 30 giorni)
Evan Charlesworth
Evan Charlesworth il 14 Ott 2018
Risposto: Walter Roberson il 14 Ott 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.

Risposte (1)

Walter Roberson
Walter Roberson il 14 Ott 2018
zc = zeros(size(YourMatrix,1),1);
newmatrix = [zc, YourMatrix, zc];

Categorie

Scopri di più su Word games in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by