Create a two dimensional zero matrix - MATLAB Cody - MATLAB Central

Problem 1924. Create a two dimensional zero matrix

Difficulty:Rate

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.

Example:

If input is m=2 and n=3 then

 A = [ 0 0 0
       0 0 0 ]

Solution Stats

80.93% Correct | 19.07% Incorrect
Last Solution submitted on May 08, 2025

Problem Comments

Solution Comments

Show comments
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
3

Problem Recent Solvers504

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page