Plotting symbolic equation in matlab
1 回表示 (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
Cris LaPierre
2021 年 4 月 18 日
syms eq(x)
eq(x) = (sin(sqrt(x)+5)*exp(sqrt(x)))/sqrt(x)
fplot(eq,[0 20])
2 件のコメント
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
vpasolve(eq,x)
% restricting range
vpasolve(eq,x,[0 10])
vpasolve(eq,x,[10 30])
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!