How to enter the following functions

조회 수: 2 (최근 30일)
Santiago Rodrigues
Santiago Rodrigues 2019년 10월 6일
댓글: Stephan 2019년 10월 6일
Hello,
So I need to enter the functions
6cos(theta)=theta/5 in the interval [pi,2pi] and
e^(-0.01x)=7x-2 in the interval [0,3]
The objective is to use the fzero opperator and stuff.
How can I do this?

채택된 답변

Stephan
Stephan 2019년 10월 6일
편집: Stephan 2019년 10월 6일
you need to rewrite so that the given equations are equal to zero. Then fzero finds x.
fun = @(x) something with x equal to zero
x0 = some starting point
res = fzero(fun,x0)
  댓글 수: 3
Santiago Rodrigues
Santiago Rodrigues 2019년 10월 6일
Yeah, thanks. I realize I am very dumb. Thank you foe your help
Stephan
Stephan 2019년 10월 6일
Did you notice that you can accept and/or vote for useful answers?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by