필터 지우기
필터 지우기

Plotting symbolic equation in matlab

조회 수: 1 (최근 30일)
Md. Ashikur Rahman Any
Md. Ashikur Rahman Any 2021년 4월 18일
댓글: Cris LaPierre 2021년 4월 18일
whats wrong with this?
Here i tried to plot a sybolic equation for range x=[1,20] but it shows
How to fix it .and plotting the curve

채택된 답변

Cris LaPierre
Cris LaPierre 2021년 4월 18일
Try creating your symbolic equation using the approach shown in the examples here.
syms eq(x)
eq(x) = (sin(sqrt(x)+5)*exp(sqrt(x)))/sqrt(x)
eq(x) = 
fplot(eq,[0 20])
  댓글 수: 2
Md. Ashikur Rahman Any
Md. Ashikur Rahman Any 2021년 4월 18일
If i want to get all the intersecting point of x axis for a particular range like the graph below.For instance here the intersecting ponit is in range of 1 to 400.
how to get that ?
Thanks in Advance
Cris LaPierre
Cris LaPierre 2021년 4월 18일
I think you want to use vpasolve. It does not appear to be able to return all solutions at once, so you'll have to define intervals to search in. See this example.
syms x
eq = (sin(sqrt(x)+1)*exp(sqrt(x)))/sqrt(x)==0
eq = 
vpasolve(eq,x)
ans = 
70.976883688265468138734558699208
% restricting range
vpasolve(eq,x,[0 10])
ans = 
4.5864190939097721419092042333171
vpasolve(eq,x,[10 30])
ans = 
27.912046989998261521487390466387

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by