Plotting cone and hyperbola
이전 댓글 표시
I have the equation of hyperbola from the fitted data. I wants to plot that hyperbola with cone to visualise actual emission processes.
Y = 7.46/(x+5.10) -0.86 is the hyperbola fit equation.
Is it possible to plot 3D image of this hyperbola inside a cone?
Your help is appreciated.
답변 (1개)
Here is an example
[T,R] = meshgrid(linspace(0,2*pi,20),0:5);
[X,Y] = pol2cart(T,R);
Z = R;
% Y = 7.46/(x+5.10) -0.86 is the hyperbola fit equation.
Z1 = 7./(R+5);
surf(X,Y,Z)
surface(X,Y,Z1)
댓글 수: 9
Angira Mahida
2021년 6월 7일
편집: Angira Mahida
2021년 6월 7일
Maybe better be to create sandclock from two parts
[T,Z] = meshgrid(linspace(0,2*pi,20),-3:.1:3);
R = abs(Z);
mid = R < 1;
R(mid) = (1+R(mid))/2;
[X,Y] = pol2cart(T,R);
surf(X,Y,Z)
Experiment to get the result you want
Angira Mahida
2021년 6월 8일
편집: Angira Mahida
2021년 6월 8일
darova
2021년 6월 8일
Can you explain your question? Here is the change i made

Please draw simple sketch or something
Angira Mahida
2021년 6월 8일
I don't get what you want
[T,Z] = meshgrid(linspace(0,2*pi,20),-3:.1:3);
R = abs(Z);
mid = R < 1;
R(mid) = sqrt(2-Z(mid).^2);
[X,Y] = pol2cart(T,R);
surf(X,Y,Z)
Angira Mahida
2021년 6월 8일
Doesn't look like cone crossection
x = -5:.2:5;
y = 7.46./(x+5.10) -0.86;
plot(x,y)
Angira Mahida
2021년 6월 12일
편집: Angira Mahida
2021년 6월 12일
카테고리
도움말 센터 및 File Exchange에서 Time Series에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!






