MATLAB: How to do zero padding for a vector

dsp

please help. i have just started learning matlab .

Best Answer

A=[1 2 3]
B=[A zeros(1,3)]