How Zero padding inside a matrix ?
Mostra commenti meno recenti
Hello, how can i zero pad inside a matrix ? For example :
if true
% code
end
A = [ 1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16]
And i want
A = [ 1 2 3 4
5 6 7 8
0 0 0 0
0 0 0 0
......
0 0 0 0
0 0 0 0
9 10 11 12
13 14 15 16]
I know padarray can zero pad but only outside not in the inside.. Thank you.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Shifting and Sorting Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!