Problem 43333. Save variables

Solution 1927831

Submitted on 9 Sep 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
a = 1; savevar(a) ii=ls('a.mat') assert(~isempty(ii))

Out of memory. The likely cause is an infinite recursion within the program. Error in savevar (line 2) savevar(a)

2   Fail
clear load a assert(a==1)

Error using load Unable to read file 'a'. No such file or directory. Error in Test2 (line 2) load a

Suggested Problems

More from this Author27

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!