pollyRSA
Electrical
- Jul 31, 2005
- 4
sorry, another newbie question.
i fully understand how a curve should look, and how to use meshgrid, mesh etc. problem is, i cant get my problem translated into matlab.
in 2D - the curve is a straight line
(1) y = mx for 0 < x < r (r being some constant)
then once x = r, the curve is an exponetial, along the lines of
(2) y = 1/x
the problem is, i need this in 3D. from the top view, the plot must be a circle. as the circle expands, the z-axis follows the 2D curve. u could imagine its like a donut, the middle is not quite empty, but its height is low. as u expand from the centre of the donut, the hight increases. once u get to the edge of the donut tho, the height falls away rapidly.
i hope people can understand this. if anyone has done a bit of magnetism, it's the plot of magnetic flux density B, of a circular current carrying conductor with radius r.
i fully understand how a curve should look, and how to use meshgrid, mesh etc. problem is, i cant get my problem translated into matlab.
in 2D - the curve is a straight line
(1) y = mx for 0 < x < r (r being some constant)
then once x = r, the curve is an exponetial, along the lines of
(2) y = 1/x
the problem is, i need this in 3D. from the top view, the plot must be a circle. as the circle expands, the z-axis follows the 2D curve. u could imagine its like a donut, the middle is not quite empty, but its height is low. as u expand from the centre of the donut, the hight increases. once u get to the edge of the donut tho, the height falls away rapidly.
i hope people can understand this. if anyone has done a bit of magnetism, it's the plot of magnetic flux density B, of a circular current carrying conductor with radius r.