Function for roots ....

조회 수: 1 (최근 30일)
Mujtaba Allawati
Mujtaba Allawati 2020년 12월 11일
댓글: Walter Roberson 2020년 12월 11일
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
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
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
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개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by