Filter löschen
Filter löschen

add column of zeros at end of matrix?

51 Ansichten (letzte 30 Tage)
Evan Charlesworth
Evan Charlesworth am 14 Okt. 2018
Beantwortet: Walter Roberson am 14 Okt. 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.

Antworten (1)

Walter Roberson
Walter Roberson am 14 Okt. 2018
zc = zeros(size(YourMatrix,1),1);
newmatrix = [zc, YourMatrix, zc];

Kategorien

Mehr zu Word games finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by