Cody

Solution 2614798

Submitted on 26 Jun 2020 by Binbin Qi
  • Size: 14
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = '32'; y_correct = true; assert(isequal(isconvertible(x),y_correct)) x = '-1'; y_correct = true; assert(isequal(isconvertible(x),y_correct)) x = '0'; y_correct = true; assert(isequal(isconvertible(x),y_correct)) x = 'i'; y_correct = false; assert(isequal(isconvertible(x),y_correct)) x = 'shoosan3'; y_correct = false; assert(isequal(isconvertible(x),y_correct)) x = '-2'; y_correct = true; assert(isequal(isconvertible(x),y_correct)) x = 'sdaf'; y_correct = false; assert(isequal(isconvertible(x),y_correct)) x = 'f00'; y_correct = false; assert(isequal(isconvertible(x),y_correct))

ans = logical 1 ans = logical 1 ans = logical 1 ans = logical 0 ans = logical 0 ans = logical 1 ans = logical 0 ans = logical 0

Suggested Problems

More from this Author3