ch3_2_1.htm

来自「这是一套MATLAB详细手册」· HTM 代码 · 共 39 行

HTM
39
字号
<! Made by Html Translation Ver 1.0>

<HTML>

<HEAD>

<TITLE>  三维的曲线绘图 </TITLE>

</HEAD>



<BODY BACKGROUND="bg0000.gif" tppabs="http://166.111.167.223/computer/cai/matlabjc/img/bg0000.gif">

<FONT COLOR="#0000FF">

<H1>3.2.1  三维的曲线绘图</H1>

</FONT>

<HR>



<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">plot3</FONT><FONT FACE="Times New Roman">

</FONT>可以用来画一个三维的曲线,它的格式类似<FONT FACE="Times New Roman">

</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">plot</FONT><FONT FACE="Times New Roman">

</FONT>,不过多了<FONT FACE="Times New Roman"> z</FONT>方向的数据。其与法可以是<FONT FACE="Times New Roman">

</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">plot3(X,Y,Z)</FONT><FONT FACE="Times New Roman">

</FONT>或是<FONT FACE="Times New Roman"> </FONT><FONT COLOR=#FF0000 FACE="Times New Roman">plot3(X,Y,Z,'linetype')</FONT>,其中的<FONT FACE="Times New Roman">

</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">linetype</FONT>是设定画线的符号和颜色。下面的例子说明一个三维的曲线图:

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt; t=0:pi/50:10*pi;</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt; plot3(sin(t),cos(t),t)</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt; title('Helix'),

xlabel('sin(t)', ylabel('cos(t)'), zlabel('t')</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt; axis('ij')

                  % </FONT><FONT COLOR=#FF0000>加上这个指令,注意图的</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">y</FONT><FONT COLOR=#FF0000>轴及曲线方向改变了

<BR>

</FONT><HR>

<A HREF="ch3_2.htm" tppabs="http://166.111.167.223/computer/cai/matlabjc/ch3_2.htm"><IMG SRC="lastpage.gif" tppabs="http://166.111.167.223/computer/cai/matlabjc/img/lastpage.gif" BORDER=0></A>

<A HREF="ch3_2_2.htm" tppabs="http://166.111.167.223/computer/cai/matlabjc/ch3_2_2.htm"><IMG SRC="nextpage-1.gif" tppabs="http://166.111.167.223/computer/cai/matlabjc/img/nextpage.gif" BORDER=0 HSPACE=10></A>

<A HREF="index.html" tppabs="http://166.111.167.223/computer/cai/matlabjc/index.html"><IMG SRC="outline-1.gif" tppabs="http://166.111.167.223/computer/cai/matlabjc/img/outline.gif" BORDER=0 HSPACE=6></A><BR>

<FONT SIZE=2 COLOR=#AA55FF> 上一页 下一页 讲义大纲 </FONT>

</BODY>

</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?