This solution is outdated. To rescore this solution, sign in.
|Test||Status||Code Input and Output|
%% a = 1; b = 2; c = 1; y_correct = -1; y_correct = -1; assert(isequal(your_fcn_name(x),y_correct))
[Warning: Function horzcat has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
%% a = 9; b = 42; c = 5; y_correct = -0.22005; y_correct = -8.17995; assert(isequal(roots(x),y_correct))