MATLAB: Adding a column of zeros at the beginning?

matrix

Hi,
if H=[1 2 5 4 1;3 4 3 4 1] , how can I add two columns zeros at the beginning of mateix H?? Because I have a huge matrix and I’m looking for a simple way to that.
Thanks

Best Answer

Something like this?
n=2;
H(:,1+n:end+n)=H(:,1:end);
H(:,1:n)=0