필터 지우기
필터 지우기

find numerical solution of a function

조회 수: 2 (최근 30일)
letoppina
letoppina 2018년 7월 5일
답변: Torsten 2018년 7월 5일
Hi everyone,
I need to find the numerical solution for my parameter (V) of the following function that does not have an explicit analytical resolution:
I know the range of the solution of my parameter (between 0 and 10) so I was thinking to define a linspace vecotr for V and then find the possible roots of my function. How do I do that? Are there better methods?
Thank you in advance for your help!

답변 (2개)

Matt J
Matt J 2018년 7월 5일
편집: Matt J 2018년 7월 5일
Use fzero:
V=fzero(@yourFunction, [0,10])
  댓글 수: 1
letoppina
letoppina 2018년 7월 5일
it's not working. Can you show me how to code it?

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


Torsten
Torsten 2018년 7월 5일
f0=...;
R=...;
alpha=...;
C0=...;
gamma0=...;
r=...;
L=...;
beta=...;
omega=...;
yourFunction = @(V)4*f0*R*alpha-V*alpha/C0-V*alpha*(1-gamma0*exp(-r/(2*L*omega)*atan(beta/(L*omega*V*alpha)))*sqrt(1+(beta/(L*omega*V*alpha))^2));
V=fzero(yourFunction, [0,10])

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by