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.
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry PiLearn more
Opportunities for recent engineering grads.Apply Today
New to MATLAB?Learn MATLAB today!
Play games and win prizes!Learn more