How draw an ellipse by acquiring points in 3D
21 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Morteza.Moslehi
am 16 Dez. 2016
Kommentiert: Madeleine Foster
am 11 Mär. 2018
Hi. I have solved an Orbital Mechanics question about orbiting and acquired three points about the orbits, for example R1=(-9.5i 6.04j 3.1k)*10^3 and R2=(-9.6i 6.03j 3.4k)*10^3 as you see, the orbits are ellipse. i want to show it in cartesian axis. how can i do this..? should i use plot3 formation ? would you please help me please?
6 Kommentare
Adam
am 16 Dez. 2016
@Taha Smith. Please reply with comments rather than flagging someone's comment. Flags are used for reporting spam or other inappropriate content.
Akzeptierte Antwort
Weitere Antworten (1)
José-Luis
am 16 Dez. 2016
Adapt to your needs:
z = [0.5,1];
fx = @(x) sin(x);
fy = @(x) cos(x);
t = linspace(0,2*pi,101);
plot3(fx(t),fy(t),repmat(z(1),1,numel(t)));
hold on
plot3(fx(t),fy(t),repmat(z(2),1,numel(t)));
4 Kommentare
Siehe auch
Kategorien
Mehr zu Earth and Planetary Science finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!