Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
fh_str='log2(x)+smooth3(x,y)+abs(2)+log10(5)';
exp_str='abs log10 log2 smooth3';
assert(isequal(find_functions(fh_str),exp_str))
|
2 | Pass |
fh_str='for k=log10(x):log2(x)+abs(x)';
exp_str='abs for log10 log2';
assert(isequal(find_functions(fh_str),exp_str))
|
3 | Pass |
fh_str=@(x)x^2+sin(x)-cos(x);
exp_str='cos sin';
assert(isequal(find_functions(fh_str),exp_str))
|
4 | Pass |
fh_str='@(x)x^2+sin(x)-cos(x)';
exp_str='cos sin';
assert(isequal(find_functions(fh_str),exp_str))
|
5 | Pass |
fh_str='filter2(x,A)+filter(x)-cos(x) expm(z)';
exp_str='cos filter expm filter2';
assert(isequal(find_functions(fh_str),exp_str))
|
6 | Pass |
fh_str='smooth3(x,y)-filter(x)+abs(n)+filter2(u)+sin(x)+numel(z)';
exp_str='abs filter numel sin filter2 smooth3';
assert(isequal(find_functions(fh_str),exp_str))
|
Find the two most distant points
1628 Solvers
116 Solvers
Replace multiples of 5 with NaN
358 Solvers
273 Solvers
903 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!