Solution 1986090

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

x = 0.3029

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

x = 0.3029

Output argument "a" (and maybe others) not assigned during call to "MyFunc". Error in Test2 (line 1) [x a] = MyFunc();