plotting in matlab using implicit

1 Ansicht (letzte 30 Tage)
ali hassan
ali hassan am 19 Nov. 2020
Bearbeitet: KALYAN ACHARJYA am 19 Nov. 2020
actually i am plotting 3 equations and i am getting hyperbolic area and then i get intersection of thsese hyperbolic areas but i only want to only plot the three hyperbolic curves in 3D.how can i plot it???
CODE:
syms xs ys zs %our unknowns
eqn1 = sqrt((xs-x(4))^2+(ys-y(4))^2+(zs-z(4))^2)-sqrt((xs-x(1))^2+(ys-y(1))^2+(zs-z(1))^2)-(c*t1)==0;
eqn2 = sqrt((xs-x(4))^2+(ys-y(4))^2+(zs-z(4))^2)-sqrt((xs-x(2))^2+(ys-y(2))^2+(zs-z(2))^2)-(c*t2);
eqn3 = sqrt((xs-x(4))^2+(ys-y(4))^2+(zs-z(4))^2)-sqrt((xs-x(3))^2+(ys-y(3))^2+(zs-z(3))^2)-(c*t3);
sol = solve([eqn1, eqn2, eqn3], [xs ys zs]);
figure(1)
fimplicit3(eqn1,[-0.008 0.001 -0.002 0.0015 -0.015 0.015],'EdgeColor','none','FaceAlpha',.5)
hold on
fimplicit3(eqn2,[-0.008 0.001 -0.002 0.0015 -0.015 0.015],'EdgeColor','none','FaceAlpha',.5)
fimplicit3(eqn3,[-0.008 0.001 -0.002 0.0015 -0.015 0.015],'EdgeColor','none','FaceAlpha',.5)
OUTPUT:
but i only want curves and their intersections.
plzz help

Antworten (1)

KALYAN ACHARJYA
KALYAN ACHARJYA am 19 Nov. 2020
Bearbeitet: KALYAN ACHARJYA am 19 Nov. 2020
"but i only want curves and their intersections"
Try this way, you will get edge boundary only
fimplicit3(eqn1,[-0.008 0.001 -0.002 0.0015 -0.015 0.015],'EdgeColor','b','FaceAlpha',0)
%......................................................................^...............^
% Change edge color in all three plots to get distinguishable

Kategorien

Mehr zu Polar Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by