Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
a=10;
ref = 1/(1+exp(-(a-15)/6));
user = MyFunc();
assert(isequal(user,ref))
a =
10
x =
0.3029
|
2 | Pass |
%%
[x a] = MyFunc();
assert(a==10);
a =
10
x =
0.3029
|
Sum of diagonal of a square matrix
1327 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3625 Solvers
343 Solvers
276 Solvers
1223 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!