Problem 326. Tricky timing
Write a function that takes between 0.5 seconds and 0.6 seconds to run.
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
Aurelien Queffurust
on 24 Feb 2012
If we let timing as the function name we get an error from your test suite. We have to rename it into foo
Vincent
on 29 May 2012
Agreed. Is the function name part of the 'trick'?
Dan
on 30 May 2013
Error: Undefined function 'foo' for input arguments of type 'double'.
Andrew Newell
on 24 Apr 2014
Strange looking test, but the problem taught me something new about Matlab.
Solution Comments
Show commentsProblem Recent Solvers177
Suggested Problems
-
Maximum running product for a string of numbers
2153 Solvers
-
Back to basics 18 - justification
197 Solvers
-
Arrange vector in ascending order
770 Solvers
-
Find the dimensions of a matrix
515 Solvers
-
Solving Quadratic Equations (Version 1)
483 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!