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 个评论

Instead of editing your question, post a new one so that more people see it. Follow these guidlines to make it easier for people to understand you.
Original question by Mujtaba Allawati retrieved from Google Cache:
Function for day of the year
How do I write a function shows the weekday corresponding to that day of year. For example, the user will enter a number less than 366 and will get the weekday in that year.
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.

请先登录,再进行评论。

 采纳的回答

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

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 MATLAB Coder 的更多信息

产品

版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by