Cody

Solution 337661

Submitted on 23 Oct 2013
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
%% x = 'sin'; y=which(x) assert(isequal(path2func(x),y(11:end-1)))

Error: Assertion failed.

2   Pass
%% x = 'peaks'; y=which(x) assert(isequal(path2func(x),y))

y = /opt/mlsedu/matlab/R2013b/toolbox/matlab/elmat/peaks.m

3   Fail
%% x = 'system'; y=which(x) assert(isequal(path2func(x),y(11:end-1)))

Error: Assertion failed.

Suggested Problems

More from this Author39