Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
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 ) )
|
2 | Pass |
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 ) )
y_test =
1.0000 -3.4903 12.1825
|
How to find the position of an element in a vector without using the find function
2477 Solvers
Calculate square and cube of number
248 Solvers
Find my daddy long leg (No 's')
632 Solvers
199 Solvers
2039 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!