Cody

Solution 2075338

Submitted on 31 Dec 2019 by Nikolaos Nikolaou
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
a = 2; y_correct = [ 28.9550 97.1808]; assert(isequal(isoceles(a),y_correct))

h = 28.9550 60.0000 97.1808 h = 28.9550 60.0000 97.1808 h = 28.9550 97.1808 y = 28.9550 97.1808

2   Pass
a = 3; y_correct = [ 19.1881 38.9424 83.6206 112.8854]; assert(isequal(isoceles(a),y_correct))

h = 19.1881 38.9424 60.0000 83.6206 112.8854 h = 19.1881 38.9424 60.0000 83.6206 112.8854 h = 19.1881 38.9424 83.6206 112.8854 y = 19.1881 38.9424 83.6206 112.8854

3   Pass
a = 1; y_correct = []; assert(isequal(isoceles(a),y_correct))

h = 60.0000 h = 60 h = 1×0 empty double row vector y = 1×0 empty double row vector y = []