Function for roots ....
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mujtaba Allawati
am 11 Dez. 2020
Kommentiert: Walter Roberson
am 11 Dez. 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 Kommentare
Stephen23
am 11 Dez. 2020
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.
Walter Roberson
am 11 Dez. 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.
Akzeptierte Antwort
Ameer Hamza
am 11 Dez. 2020
Bearbeitet: Ameer Hamza
am 11 Dez. 2020
Try something like this
d = 50;
y = 2020;
out = datestr(datetime(y,1,0)+d, 'dddd')
Result
>> out
out =
'Wednesday'
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Language Fundamentals finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!