plotting in matlab using implicit
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Contour Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!