I didn't understand why my code not working here,it worked on my Matlab but not here.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
y_correct = [1.0000 0.7246 0.1554 -0.4232 -0.7524 -0.7118 -0.3583 0.1177 0.4912 0.6065];
y_test = damped_cos(0.5, 1, 10);
assert( all ( abs(y_correct(:) - y_test(:)) < 1e-4 ) )
t =
0
|
2 | Fail |
y_correct = [1.0000 -3.4903 12.1825];
y_test = damped_cos(-0.5, 5, 3)
assert( all ( abs(y_correct(:) - y_test(:)) < 1e-4 ) )
t =
0 3
y_test =
1.0000 4.4817
|
54217 Solvers
Find the alphabetic word product
2321 Solvers
1882 Solvers
Back to basics 23 - Triangular matrix
634 Solvers
Matlab Basics II - Count rows in a matrix
255 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!