Graphing a transcendental Equation

18 次查看(过去 30 天)
HI everyone, i am new on matlab and i need some help to plot a transcendental equation. The equation is:
sin(beta - phi)+sin(phi)*exp(-beta/atan(phi)=0;
This curve represents the conduction angle beta given a phi angle. The plot needs to represents beta degrees (Y axis) vs phi degrees (X axis).
The point is that phi varies from 0 to 100º deg, and beta varies from 0 to 380º deg, i want to see the relation between phi and beta.
Cand someone give me some help?
Cheers!

采纳的回答

John D'Errico
John D'Errico 2017-8-20
编辑:John D'Errico 2017-8-20
ezplot('sind(beta - phi)+sind(phi).*exp(-beta./atand(phi))',[0 380 0 100])
When you are not sure how to plot something, ezplot (or one of its cousins) is often a good thing to try.
  6 个评论
Teja Muppirala
Teja Muppirala 2017-8-21
编辑:Teja Muppirala 2017-8-21
FPLOT (or FIMPLICIT in this case) is recommended over EZPLOT.
fimplicit(@(beta,phi) sind(beta - phi)+sind(phi).*exp(-beta./tand(phi)),[0 380 0 100])
FPLOT will replot the graph upon zooming (and also panning if you don't explicity send in limits) and display locations of singularities.
In the implicit case, FIMPLICIT actually gives you a true line that can be queried instead of a contour plot like EZPLOT.
Jucimar Carpe
Jucimar Carpe 2017-8-21
Hi guys, actually i noted that may have a little tricky on the graph that i sent. Usually we use deg instead of rad, i think the graph was plotted originally in radians and then changed the X and Y axis to degrees.
To make sure, i cheanged the program line to:
ezplot(@(beta,phi) sin(beta - phi)+sin(phi).*exp(-beta./tan(phi)),[pi (380*pi/180) 0 (100*pi/180)]) hold on grid on
And changed the scale of the graph and got the this result, as you can see it is close enough from the original.
Give a look at the results.
Thank you.

请先登录,再进行评论。

更多回答(1 个)

amita tripathi
amita tripathi 2018-12-19
What, if we want to plot histogram of the trancendental expression like .

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by