Problem 44243. Ternary Conditional Operator
8.72% Correct | 91.28% Incorrect
Last Solution submitted on Apr 30, 2023
Show 2 older comments
Binbin Qi on 28 Jun 2017
Good idea to write matlab code as the other language like c.
Mu on 16 Jan 2019
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:
goc3 on 17 Jan 2019
The test suite has been fixed. (The initial line is no longer commented out.)
Khaled Janada on 7 Mar 2020
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.
LY Cao on 22 Apr 2020
Solution CommentsShow comments
Problem Recent Solvers11
Count from 0 to N^M in base N.
Determine if input is a Narcissistic number
More from this Author8
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!