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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by