Solution 1737921

Submitted on 27 Feb 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))

y = 'a.mat' ans = 'a.mat'

Error using ls (line 39) ls: cannot access 'a.mat': No such file or directory Error in Test1 (line 3) ii=ls('a.mat')

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