フィルターのクリア

I need to find the y values at x=0 for the data provided below

2 ビュー (過去 30 日間)
Jordan DiBona
Jordan DiBona 2021 年 2 月 15 日
回答済み: Abhishek Gupta 2021 年 2 月 18 日
function h = circle(x,y,r)
x=-55.05;
y=-484.68;
r=544.42;
hold on
th = 0:pi/50:2*pi;
xunit = r * cos(th) + x;
yunit = r * sin(th) + y;
figure(1)
h = plot(xunit, yunit);
title('Circle Diagram')
xlabel('P[MW]'), ylabel('Q[MVAR]')
hold off
end
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 2 月 16 日
Do you mean the y values at xunit == 0 ?
... And if you do, what do you want to do if xunit does not cross zero? Or if it only touches 0 instead of there being two points?

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

回答 (1 件)

Abhishek Gupta
Abhishek Gupta 2021 年 2 月 18 日
Hi,
Assuming, from y at x = 0, you mean yunit at xunit = 0, the yunits for the given values of x, y, and r would be as follows: -
theta = [acos(-x/r); (acos(-x/r) + pi)]; % th values at xunit = 0
Yunits = r*sin(theta) + y; % yunit values at xunit = 0

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by