Cody

Solution 1955529

Submitted on 2 Oct 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=10; ref = 1/(1+exp(-(a-15)/6)); user = MyFunc(); assert(isequal(user,ref))

Unrecognized function or variable 'e'. Error in MyFunc (line 3) x=1/(1+e^(-(a-15)/6)) Error in Test1 (line 3) user = MyFunc();

2   Fail
[x a] = MyFunc(); assert(a==10);

Unrecognized function or variable 'e'. Error in MyFunc (line 3) x=1/(1+e^(-(a-15)/6)) Error in Test2 (line 1) [x a] = MyFunc();

Suggested Problems

More from this Author26