Here's the solution:
And, this is done in MatLab just like in Python and NumPy, such as:
For rows:
A = ones(1,4);
B = zeros(1,4);
C = [A B]
D = [A;B]
For columns:
A = ones(2,3)
B = zeros(2,2)
C = [A B]
I basically refer to
Creating, Concatenating, and Expanding Matrices- MATLAB & Simulink[
^]