Problem 44243. Ternary Conditional Operator
Solution Stats
Problem Comments
-
5 Comments
Good idea to write matlab code as the other language like c.
Maybe I just don't have the matlab skills for this problem, but maybe the test suite is broken which makes it impossible to solve:
%%mkdir @function_handle
The test suite has been fixed. (The initial line is no longer commented out.)
Another problem in the test suite? The 2nd line in the test suite:
movefile submission/colon.m @function_handle
gives an error:
The function colon is a built-in MATLAB function. Please use a different function name.
Fixed.
Solution Comments
Show commentsProblem Recent Solvers11
Suggested Problems
-
3089 Solvers
-
Remove the polynomials that have positive real elements of their roots.
1458 Solvers
-
323 Solvers
-
Spherical radius given four points
144 Solvers
-
Multiples of a Number in a Given Range
515 Solvers
More from this Author8
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!