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 件)

darova
darova 2021 年 6 月 5 日

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
Angira Mahida 2021 年 6 月 7 日
編集済み: Angira Mahida 2021 年 6 月 7 日
Can I extract properties of fitted cone?How?
How to turn this into two cones, like sand clock?
darova
darova 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
Angira Mahida 2021 年 6 月 8 日
編集済み: Angira Mahida 2021 年 6 月 8 日
Does this cone have hyperbola too?
if we would be facing this side of the come, how would I know where the hyperbola is or which part is coverd by the given hyperbola?
Sorry I am super confused. Thank you so much.
darova
darova 2021 年 6 月 8 日
Can you explain your question? Here is the change i made
Please draw simple sketch or something
Angira Mahida
Angira Mahida 2021 年 6 月 8 日
This is the conic model I am observing, So we can see through one of the cone facing towards earth and there is a quantity that follows hyperbolic nature which is coming from inside the cone. So i am trying to plot a cone which has a hyperbola inside it to see what part of the 'see through' is covered by that hyperbola.
Thank you.
darova
darova 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
Angira Mahida 2021 年 6 月 8 日
Oh No!
i just need a conic section with the hyperbola.
Let me tell you the other way.
A 3D plot like this,
where the equation of the hyperbola is,
and coefficients are, a = 7.45, b= -5.10, c = -0.86.
is it possible?
Thank you :)
darova
darova 2021 年 6 月 9 日
Doesn't look like cone crossection
x = -5:.2:5;
y = 7.46./(x+5.10) -0.86;
plot(x,y)
Angira Mahida
Angira Mahida 2021 年 6 月 12 日
編集済み: Angira Mahida 2021 年 6 月 12 日
How can we fit a hyperbola in a given data?
That is not in the list of given fit equations in cftool.
also Could this be rectangular hyperbola?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeTime Series についてさらに検索

製品

質問済み:

2021 年 6 月 2 日

編集済み:

2021 年 6 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by