Problem 1924. Create a two dimensional zero matrix

You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros.


If input is m=2 and n=3 then

 A = [ 0 0 0
       0 0 0 ]

Solution Stats

84.49% Correct | 15.51% Incorrect
Last solution submitted on Sep 18, 2017
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!