필터 지우기
필터 지우기

Need some assistance with creating a program

조회 수: 1 (최근 30일)
Aaron
Aaron 2012년 7월 12일
I need to create a while loop program to calculate cos(x) accurate to 6 digits after decimal using:
cos(x)=1-(x^2/2!)+(x^4/4!)-..... (x is in radians)
I want to prompt the user to enter an angle in degrees and display cos(A). I'm just lost right now. Gonna sleep on it but any help would be greatly appreciated.

채택된 답변

Adrian Dronca
Adrian Dronca 2012년 7월 12일
편집: Adrian Dronca 2012년 7월 12일
You could create a small GUI using GUIDE.
You can get the data from/to GUI using the commands get and set

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by