Function for roots ....

5 views (last 30 days)
Mujtaba Allawati
Mujtaba Allawati on 11 Dec 2020
Commented: Walter Roberson on 11 Dec 2020
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.
  3 Comments
Walter Roberson
Walter Roberson on 11 Dec 2020
Mujtaba Allawati: as you are the person who posted the Question, if you feel that it is not clear then you should post a clarfication to make the Question more clear.

Sign in to comment.

Accepted Answer

Ameer Hamza
Ameer Hamza on 11 Dec 2020
Edited: Ameer Hamza on 11 Dec 2020
Try something like this
d = 50;
y = 2020;
out = datestr(datetime(y,1,0)+d, 'dddd')
Result
>> out
out =
'Wednesday'

More Answers (0)

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by