How to ask for user's input in a program
이전 댓글 표시
I need to create a program which would ask for user to type any value m and choose between functions (sin or cos). After that I have to calculate an equation x=m:.1:m+4*pi and based on the chosen function the program should draw a discrete data plot. The program should later continue the calculations each 0.5s increasing m by pi/8 for 15 times and then draw a new plot in the earlier figure. I should use for, if, else constructors and I have no idea where to start and how to do it. I would love any kind of help! Thanks in advance!
댓글 수: 4
madhan ravi
2018년 10월 13일
what have we tried so far?
Dominykas Repecka
2018년 10월 13일
madhan ravi
2018년 10월 13일
upload your code
Dominykas Repecka
2018년 10월 13일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Time Series Events에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!