Cody

Solution 1378867

Submitted on 13 Dec 2017 by David Verrelli
  • Size: 16
  • 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
theoric=50; quoted=55; y_correct = 'short' assert(isequal(your_fcn_name(theoric,quoted),y_correct))

y_correct = 'short' ans = 'buy' ans = 'short'

2   Pass
theoric=50; quoted=45; y_correct = 'buy' assert(isequal(your_fcn_name(theoric,quoted),y_correct))

y_correct = 'buy' ans = 'buy'

3   Pass
theoric=65; quoted=64; y_correct = 'buy' assert(isequal(your_fcn_name(theoric,quoted),y_correct))

y_correct = 'buy' ans = 'buy'

4   Pass
theoric=32; quoted=44; y_correct = 'short' assert(isequal(your_fcn_name(theoric,quoted),y_correct))

y_correct = 'short' ans = 'buy' ans = 'short'

Suggested Problems