Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
rng('default')
R = randn(504, 5);
w = ones(5, 1)/5;
assert(abs(computePortCokurt(R, w)-0.119749008958925)<1e-3)
ans =
0.1197
|
2 | Pass |
rng('default')
R = randn(252, 15);
w = ones(15, 1)/15;
assert(abs(computePortCokurt(R, w)-0.013012357540290)<1e-3)
ans =
0.0130
|
3 | Pass |
rng('default')
R = randn(100, 1);
w = 1;
assert(abs(computePortCokurt(R, w)-6.280759230562035)<1e-3)
ans =
6.2808
|
4 | Pass |
rng('default')
R = randn(5, 10);
w = [0.1*ones(5, 1); 0.5; zeros(4, 1)];
assert(abs(computePortCokurt(R, w)-0.169198885214440)<1e-3)
ans =
0.1692
|
Create a cell array out of a struct
508 Solvers
235 Solvers
190 Solvers
Back to basics 11 - Max Integer
678 Solvers
400 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!