Help Plotting an Ellipse from X,Y data

2 ビュー (過去 30 日間)
Brendan
Brendan 2025 年 2 月 3 日
編集済み: Matt J 2025 年 2 月 3 日
I am looking for help on making an ellipse on my XY plot. I want my ellipse to cover 95% of the data but I am having trouble doing so.
X data = FCOPX
Y data = FCOPY
Any help would be great thank you.

回答 (1 件)

Matt J
Matt J 2025 年 2 月 3 日
編集済み: Matt J 2025 年 2 月 3 日
a=3; b=2; %Major/minor ellipse radii
plot(rand(1,5)); hold on; axis equal
ellipse = translate( scale(nsidedpoly(1000),[a,b]) , [mean(xlim), mean(ylim)] );
plot(ellipse); hold off

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by