matlab怎么画圆锥面和截面的交线,使用Matlab绘制圆锥的立体图(Cone's graph)

圆锥的立体几何定义:“以直角三角形的直角边所在直线为旋转轴,其余两边旋转360度而成的曲面所围成的几何体叫做圆锥。旋转轴叫做圆锥的轴。 垂直于轴的边旋转而成的曲面叫做圆锥的底面。不垂直于轴的边旋转而成的曲面叫做圆锥的侧面。无论旋转到什么位置,不垂直于轴的边都叫做圆锥的母线。”

Wikipedia上的定义如下:“A cone is a three-dimensional geometric shape that tapers smoothly from a flat base (frequently, though not necessarily, circular) to a point called the apex or vertex.

A cone is formed by a set of line segments, half-lines, or lines connecting a common point, the apex, to all of the points on a base that is in a plane that does not contain the apex. Depending on the author, the base may be restricted to be a circle, any one-dimensional quadratic form in the plane, any closed one-dimensional figure, or any of the above plus all the enclosed points. If the enclosed points are included in the base, the cone is a solid object; otherwise it is a two-dimensional object in three-dimensional space. In the case of a solid object, the boundary formed by these lines or partial lines is called the lateral surface; if the lateral surface is unbounded, it is a conical surface.”

那么如何使用软件绘制圆锥的图形呢?

代码如下:

参考了以下文章:https://zhidao.baidu.com/question/97543462.html(用matlab怎么画圆锥体?)

z=cplxgrid(20);%在复平面上面得到一个21*41的网格,x,y分别为其实部和虚部

x=real(z);

y=imag(z);

fz=sqrt((x.^2+y.^2));%圆锥公式,z^2=x^2+y^2来求fz

cplxmap(z,fz)%作图

在Matlab中输入以上代码,就可以得到圆锥图了(这图确实漂亮!)

0dba5c8c9ff7f5995c741cd5a4186bc5.png

1290223749949366272.htm

1290223749949366272.htm

1290223749949366272.htm

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值