MATLAB: Function for roots ….

day of yearMATLABmatlab coderweekday

How do I write a function that uses a, b and c as inputs to characterize ((i.e., non-equal real, equal real or non-equal complex roots) and compute the roots of the quadratic equation.

Best Answer

Try something like this
d = 50;
y = 2020;
out = datestr(datetime(y,1,0)+d, 'dddd')
Result
>> out
out =
'Wednesday'