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 Solvers184
Suggested Problems
-
Remove all the words that end with "ain"
2648 Solvers
-
1507 Solvers
-
How many trades represent all the profit?
616 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
399 Solvers
-
Count decimal digits of a number
236 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.