Function for roots ....
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
Stephen23
2020 年 12 月 11 日
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
2020 年 12 月 11 日
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
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!