Plotting graph of an equation

3 ビュー (過去 30 日間)
Jayden
Jayden 2020 年 5 月 29 日
回答済み: Vaibhav Tomar 2020 年 5 月 31 日
Hi, hope that someone can help me on this. I want to plot a graph of this equation:
I have fix value of B,w and d. x-axis will be inner angle and y-axis will be outer angle.
Thank you in advance for any assistance provided.
  5 件のコメント
darova
darova 2020 年 5 月 29 日
You can try meshgrid and contour
Star Strider
Star Strider 2020 年 5 月 29 日
There is a missing pair of parentheses (corrected here):
f = @(ii,o)1100/100+sqrt((1100/100-2*sind(19.42)).^2-(cosd(19.42-o)-cosd(19.42+ii)).^2)-(sind(19.42+ii)+sind(19.42-o));
however if you plot the function, it never equals 0 in the desired range (or anywhere else):
[X,Y] = ndgrid(-500:10:500);
figure
surf(X,Y,f(X,Y))
so fimplicit will fail.

サインインしてコメントする。

回答 (1 件)

Vaibhav Tomar
Vaibhav Tomar 2020 年 5 月 31 日
The function won't become equal to zero in your case. meshgrid might work and generate the required results.

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by