This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Very compact.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [60 60];
y_correct = 60;
assert(isequal(missing_interior_angle(x),y_correct))
|
2 | Pass |
%%
x = [45 90];
y_correct = 45;
assert(isequal(missing_interior_angle(x),y_correct))
|
3 | Pass |
%%
x = [90 70 70];
y_correct = 130;
assert(isequal(missing_interior_angle(x),y_correct))
|
4 | Pass |
%%
x = [120 120 120 110 110];
y_correct = 140;
assert(isequal(missing_interior_angle(x),y_correct))
|
5 | Pass |
%%
x = 140*ones(1,8);
y_correct = 140;
assert(isequal(missing_interior_angle(x),y_correct))
|
3375 Solvers
Make a run-length companion vector
512 Solvers
2099 Solvers
Matlab Basics II - Count rows in a matrix
255 Solvers
147 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!