Problem 691. Number of bytes required to store a sparse matrix

Created by Aurelien Queffurust

The input is always a sparse matrix :

x = sparse(100,1000,0.01);
    >>whos x 
shows that 4016 bytes ares required .

The aim is to find the the number of bytes required to store a sparse matrix without using whos or who commands.

Tags

Problem Group

9 solvers submitted 46 solutions (5.11 solutions/solver).

Problem Comments

Solution Comments