Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
mc = [0.5 0.2 0;
0.2 0 0.6;
0.3 0 0.4];
states = [0.3 0.21;
0.3 0.3;
0.4 0.49];
MC = [0.5 0.2 0;
0.2 0 0.6;
0.3 0.8 0.4];
assert(isequal(markov(mc,states),MC))
|
2 | Pass |
%%
mc = [0.5 0.2 0;
0 0 0.6;
0.3 0.8 0.4];
states = [0.5 0.31;
0.3 0.22;
0.2 0.47];
MC = [0.5 0.2 0;
0.2 0 0.6;
0.3 0.8 0.4];
assert(isequal(markov(mc,states),MC))
|
3 | Fail |
%%
mc = [0.4 0;
0.6 0.23];
states = [0.1 0.733;
0.9 0.267];
MC = [0.4 0.77;
0.6 0.23];
assert(isequal(markov(mc,states),MC))
Error: Assertion failed.
|
given 3 sides, find area of this triangle
680 Solvers
Convert Hard Drive marketing sizes to actual data sizes
61 Solvers
253 Solvers
Getting the absolute index from a matrix
211 Solvers
Convert from Base 10 to base 5
203 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!