Write a function that takes between 0.5 seconds and 0.6 seconds to run.
Solution Stats
Problem Comments
4 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers185
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
53247 Solvers
-
3817 Solvers
-
Sum of first n terms of a harmonic progression
517 Solvers
-
Calculate the area of a triangle between three points
3508 Solvers
-
405 Solvers
More from this Author39
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
If we let timing as the function name we get an error from your test suite. We have to rename it into foo
Agreed. Is the function name part of the 'trick'?
Error: Undefined function 'foo' for input arguments of type 'double'.
Strange looking test, but the problem taught me something new about Matlab.