plotting in matlab using implicit
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
0 commentaires
Réponses (1)
KALYAN ACHARJYA
le 19 Nov 2020
Modifié(e) : KALYAN ACHARJYA
le 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
0 commentaires
Voir également
Catégories
En savoir plus sur Polar Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!