Problem 42346. Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.
Solution Stats
Problem Comments
-
2 Comments
bainhome
on 1 Jun 2015
please recheck your testsuite.ps:may I suggest you finish some problems by yourself before you create one.because this kinda problem had been repeated like hundreds times.we really tired of seeing this.
Ned Gulley
on 17 Jun 2015
I fixed the problem in the test suite.
Solution Comments
Show commentsProblem Recent Solvers604
Suggested Problems
-
967 Solvers
-
Find the sum of the elements in the "second" diagonal
1159 Solvers
-
Split a string into chunks of specified length
1881 Solvers
-
495 Solvers
-
Add a row of zeros on top of a matrix
254 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!