add column of zeros at end of matrix?
51 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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.
0 Commenti
Risposte (1)
Walter Roberson
il 14 Ott 2018
zc = zeros(size(YourMatrix,1),1);
newmatrix = [zc, YourMatrix, zc];
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!