The problem seems to be unsolvable without "cheating".
Cody gives the errormessage "The function gt is a built-in MATLAB function. Please use a different function name."
Using a different function name, of cause, will not overload the operator '>'. How is the intended solution for the current Cody version???
@cokakola: I am not sure, either. The problem has been removed from the Functions II group.
Given an unsigned integer x, find the largest y by rearranging the bits in x
800 Solvers
Equidistant numbers containing certain value in an interval
83 Solvers
4205 Solvers
29 Solvers
Duplicate each element of a vector.
521 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!