ch3_1_3.htm

来自「一个不错的matlab工程实际问题的解决方法」· HTM 代码 · 共 42 行

HTM
42
字号
<! 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.1.3  图形放大及缩小</H1>

</FONT>

<HR>



<P>

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

</FONT>指令可以将图形放大或缩小,若要将图形放大时用<FONT FACE="Times New Roman">

</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">zoom on</FONT>,<FONT COLOR=#FF0000 FACE="Times New Roman">zoom

out</FONT>,当不再须要放大或缩小图形时用<FONT FACE="Times New Roman">

</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">zoom off</FONT>。<TT><FONT FACE="Courier New">

</FONT></TT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt; M=peaks(25);

% peaks </FONT><FONT COLOR=#FF0000>是</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">MATLAB</FONT><FONT COLOR=#FF0000>内建的一个像山峰的特别函数,</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">25</FONT><FONT COLOR=#FF0000>是这个</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt; plot(M)  %

</FONT><FONT COLOR=#FF0000>函数矩阵的大小,如果数值愈大则画出的山峰图愈平滑</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt; zoom on  %

</FONT><FONT COLOR=#FF0000>开始放大图形,每按一次</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">Enter</FONT><FONT COLOR=#FF0000>键图形就放大一次</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt; zoom out 

% </FONT><FONT COLOR=#FF0000>开始缩小图形,每按一次</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">Enter</FONT><FONT COLOR=#FF0000>键图形就缩小一次</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt; zoom off 

% </FONT><FONT COLOR=#FF0000>停止图形放大或缩小功能<BR>

</FONT><HR>

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

<A HREF="ch3_1_4.htm" tppabs="http://166.111.167.223/computer/cai/matlabjc/ch3_1_4.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 + -
显示快捷键?