What does zeros(2,3,4) mean?

9 views (last 30 days)
Fariha Sneha
Fariha Sneha on 8 Apr 2019
Commented: Sabrina Gaitan on 24 Sep 2020
what does zeros(2,3,4) mean?
  2 Comments
Guillaume
Guillaume on 8 Apr 2019
How hard is it to type
zeros(2, 3, 4)
in the command window and observe the result?
Or read the zeros documentation?

Sign in to comment.

Answers (1)

James Tursa
James Tursa on 8 Apr 2019
Edited: James Tursa on 8 Apr 2019
It creates a double array of dimensions 2 x 3 x 4 filled with 0's.
doc zeros

Community Treasure Hunt

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

Start Hunting!