Problem 691. Number of bytes required to store a sparse matrix
The input will be a sparse matrix :
x = sparse(100,1000,0.01);
>>whos x
shows that 8024 bytes ares required .
The aim is to find the the number of bytes required to store a sparse matrix in a 64-bit system without using whos or who commands.
Solution Stats
Problem Comments
-
5 Comments
Show
2 older comments
Aurelien Queffurust
on 21 May 2012
@Richard, Thanks for your comments. I have added the assert with who and rescored all solutions.
Rafael S.T. Vieira
on 26 Aug 2020
All values at the test suite are currently wrong. Using whos in the first case, for instance, we obtain 8024 bytes and not 4016.
Dyuman Joshi
on 16 Aug 2021
The values in the test suites have been corrected.
Solution Comments
Show commentsProblem Recent Solvers4
Suggested Problems
-
271 Solvers
-
1891 Solvers
-
890 Solvers
-
Convert a Cell Array into an Array
1929 Solvers
-
603 Solvers
More from this Author30
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!