plotting in matlab using implicit

조회 수: 3 (최근 30일)
ali hassan
ali hassan 2020년 11월 19일
편집: KALYAN ACHARJYA 2020년 11월 19일
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

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2020년 11월 19일
편집: KALYAN ACHARJYA 2020년 11월 19일
"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

카테고리

Help CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by