That is because you are running the Function directly which will give you only 1 output
Instead of runing directly, call your function from another code or by command prompt as follow
[IU, SOL] = MMM1D;
Now see you workspace
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!