| 所在主题: | |
| 文件名: 21884.rar | |
| 资料下载链接地址: https://bbs.pinggu.org/a-21884.html | |
| 附件大小: | |
|
北京航空航天大学 张志涌 的那本 学习光盘mbook是书的内容mfile是程序,希望对大家有用处。 <DIV align=center> <TABLE cellSpacing=0 cellPadding=0 border=1> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch_abstract</FONT></P></TD> <TD vAlign=top width=252> <P>内容简介</P></TD></TR> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch_preface</FONT></P></TD> <TD vAlign=top width=252> <P>新版前言</P></TD></TR> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch01</FONT></P></TD> <TD vAlign=top width=252> <P><FONT face="Times New Roman">1. </FONT>基础准备及入门</P></TD></TR> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch02</FONT></P></TD> <TD vAlign=top width=252> <P><FONT face="Times New Roman">2. </FONT>数值数组及其运算</P></TD></TR> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch03</FONT></P></TD> <TD vAlign=top width=252> <P><FONT face="Times New Roman">3. </FONT>字符串、元胞和构架数组</P></TD></TR> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch04</FONT></P></TD> <TD vAlign=top width=252> <P><FONT face="Times New Roman">4. </FONT>数值计算</P></TD></TR> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch05</FONT></P></TD> <TD vAlign=top width=252> <P><FONT face="Times New Roman">5. </FONT>符号计算</P></TD></TR> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch06</FONT></P></TD> <TD vAlign=top width=252> <P><FONT face="Times New Roman">6. </FONT>数据和函数的可视化</P></TD></TR> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch07</FONT></P></TD> <TD vAlign=top width=252> <P><FONT face="Times New Roman">7. M</FONT>文件和面向对象编程</P></TD></TR> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch08</FONT></P></TD> <TD vAlign=top width=252> <P><FONT face="Times New Roman">8. SIMULINK</FONT>交互式仿真集成环境</P></TD></TR> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch09</FONT></P></TD> <TD vAlign=top width=252> <P><FONT face="Times New Roman">9. </FONT>句柄图形</P></TD></TR> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch10</FONT></P></TD> <TD vAlign=top width=252> <P><FONT face="Times New Roman">10. </FONT>图形用户界面<FONT face="Times New Roman">GUI</FONT>制作</P></TD></TR> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch11</FONT></P></TD> <TD vAlign=top width=252> <P><FONT face="Times New Roman">11. MATLAB</FONT>编译器</P></TD></TR> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch12</FONT></P></TD> <TD vAlign=top width=252> <P><FONT face="Times New Roman">12. </FONT>应用程序接口<FONT face="Times New Roman">API</FONT></P></TD></TR> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch13</FONT></P></TD> <TD vAlign=top width=252> <P><FONT face="Times New Roman">13. Notebook</FONT></P></TD></TR> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch14b</FONT></P></TD> <TD vAlign=top width=252> <P>附录<FONT face="Times New Roman">B</FONT>:光盘使用说明</P></TD></TR> <TR> <TD vAlign=top width=151> <P><FONT face="Times New Roman">ch15</FONT></P></TD> <TD vAlign=top width=252> <P>参考文献</P></TD></TR></TABLE></DIV> <H1 align=center>光盘使用说明</H1> <P><FONT face="Times New Roman" size=3></FONT> <P><FONT face="Times New Roman" size=3></FONT> <P><FONT face="Times New Roman" size=3></FONT> <P><FONT face="Times New Roman" size=3></FONT> <H2><FONT face="Times New Roman">B.1<FONT size=5> </FONT></FONT>光盘文件的结构</H2> <P><FONT size=3>在光盘上有如下五个文件夹:</FONT> <P><FONT size=3>l</FONT> <FONT size=3><B><FONT face="Times New Roman">matlab_api </FONT></B>专放第<FONT face="Times New Roman">12</FONT>章所涉及的各类文件。<B></B></FONT> <P><FONT size=3>l</FONT> <FONT size=3><B><FONT face="Times New Roman">matlab_c </FONT></B>专放第<FONT face="Times New Roman">11</FONT>章所涉及的各类<FONT face="Times New Roman">M</FONT>、<FONT face="Times New Roman">C</FONT>、<FONT face="Times New Roman">DLL</FONT>、<FONT face="Times New Roman">EXE</FONT>文件。<B></B></FONT> <P><FONT size=3>l</FONT> <FONT size=3><B><FONT face="Times New Roman">mbook </FONT></B>存放着包含本书全部算例的<FONT face="Times New Roman">M-book</FONT>形式<FONT face="Times New Roman">DOC</FONT>文档。<B></B></FONT> <P><FONT size=3>l</FONT> <FONT size=3><B><FONT face="Times New Roman">mfiles </FONT></B>汇集了全书<FONT face="Times New Roman">90%</FONT>以上算例的<FONT face="Times New Roman">M</FONT>或<FONT face="Times New Roman">MDL</FONT>文件。<B></B></FONT> <P><FONT size=3>l</FONT> <FONT size=3><B><FONT face="Times New Roman">PowerMatlab </FONT></B>存放着<FONT face="Times New Roman">PowerPoint</FONT>制作的科技演讲稿简例文件。<B></B></FONT> <H2><FONT face="Times New Roman">B.2<FONT size=5> </FONT></FONT>光盘对软件环境的要求</H2> <P><FONT size=3>l</FONT> <FONT size=3>需要(包含<FONT face="Times New Roman">Word</FONT>、<FONT face="Times New Roman">PowerPoint</FONT>的)<B><FONT face="Times New Roman">Offiece2000</FONT></B><FONT face="Times New Roman"> </FONT>和<B><FONT face="Times New Roman">MATLAB6.5</FONT></B>支持。</FONT> <P><FONT size=3>l</FONT> <FONT size=3>假如要运行<FONT face="Times New Roman">mbook</FONT>文件夹上的<FONT face="Times New Roman">DOC</FONT>文件,则需要<B><FONT face="Times New Roman">Notebook</FONT></B>环境。(关于<FONT face="Times New Roman">Notebook</FONT>环境的设置参见第<FONT face="Times New Roman">13.1</FONT>节)</FONT> <P><FONT size=3>l</FONT> <FONT size=3>假如要编译产生<FONT face="Times New Roman">EXE</FONT>文件,则需要与<B><FONT face="Times New Roman">MATLAB6.5</FONT></B>适配的<FONT face="Times New Roman">Borland </FONT>、<FONT face="Times New Roman">MicroSoft </FONT>、<FONT face="Times New Roman">Visual </FONT>、<FONT face="Times New Roman">Watcom <B>C/C++</B></FONT>(详见<FONT face="Times New Roman">11.2</FONT>和<FONT face="Times New Roman">11.3</FONT>节)。</FONT> <P><FONT size=3>l</FONT> <FONT size=3>假若要制作<FONT face="Times New Roman">API</FONT>接口,则需要相应的配套软件。</FONT> <H2><FONT face="Times New Roman">B.3<FONT size=5> </FONT></FONT>光盘文件的操作准备</H2> <P><FONT size=3><FONT face="Times New Roman"></FONT><B>在运行光盘文件之前,应首先使用<FONT face="Times New Roman">MATLAB</FONT></B><B>的路径浏览器把<FONT face="Times New Roman"> \mfiles , \matlab_c , \matlab_api</FONT></B><B>等三个文件夹设置在<FONT face="Times New Roman">MATLAB</FONT></B><B>的搜索路径上</B>。这种设置可以是“永久”的,即今后再打开<FONT face="Times New Roman">MATLAB</FONT>时,总确认<FONT face="Times New Roman"> \mfiles </FONT>文件夹等在搜索路径上。</FONT> <P><FONT size=3><FONT face="Times New Roman"></FONT>假如在今后运行<FONT face="Times New Roman">MATLAB</FONT>时,光盘没有插入,那么在<FONT face="Times New Roman">MATLAB</FONT>指令窗中会出现警告性提示。这对光盘以外的<FONT face="Times New Roman">MATLAB</FONT>其他运作没有任何影响。</FONT> <H2><FONT face="Times New Roman">B.4<FONT size=5> </FONT>mbook</FONT>文件夹上<FONT face="Times New Roman">DOC</FONT>文件的使用</H2> <P><FONT size=3><FONT face="Times New Roman"></FONT>该文件夹包含第<FONT face="Times New Roman">1</FONT>章到第<FONT face="Times New Roman">13</FONT>章的全部算例,以及前言、附录等。章节的编号、名称与印刷版完全一致。</FONT> <P><FONT size=3><FONT face="Times New Roman"></FONT>光盘<FONT face="Times New Roman">DOC</FONT>文件都是在<FONT face="Times New Roman">MATLAB 6.5</FONT>的<FONT face="Times New Roman">Notebook</FONT>环境中生成的。</FONT> <P><FONT face="Times New Roman" size=3></FONT> <P><FONT size=3><B>(<FONT face="Times New Roman">1</FONT></B><B>)光盘<FONT face="Times New Roman">DOC</FONT></B><B>文件的功用</B></FONT> <P><FONT size=3>l</FONT> <B><FONT size=3>弥补了印刷版丢失的色彩信息</FONT></B> <P><FONT size=3>在<FONT face="Times New Roman">MATLAB</FONT>中,用<FONT face="Times New Roman">M</FONT>文件编辑器或<FONT face="Times New Roman">Notebook</FONT>编写的指令或文件运行的结果(尤其图形)都采用不同的色彩鲜明地表现对象特征。但目前印刷版书籍出于价格和技术原因,不得不牺牲色彩信息而采用“黑白”处理。读者借助本光盘可克服印刷版丢失色彩信息的遗憾。</FONT> <P><FONT size=3>l</FONT> <FONT size=3><B>提供了与印刷版对应的<FONT face="Times New Roman">Notebook</FONT></B><B>演练环境</B></FONT> <P><FONT size=3>本光盘中<FONT face="Times New Roman">DOC</FONT>文件的章节结构、算例编号与印刷版完全相同。因此在学习过程中,读者可在本光盘启动的<FONT face="Times New Roman">Notebook</FONT>环境中,或直接运行算例,观察运行结果;或改变若干指令,举一反三地观察运行结果的变化;或通过简单的复制操作,使相应指令在<FONT face="Times New Roman">MATLAB</FONT>指令窗中运行,而避免自己键入的错误。</FONT> <P><FONT size=3>l</FONT> <FONT size=3><B>提供制作<FONT face="Times New Roman">M-book</FONT></B><B>的样板</B></FONT> <P><FONT size=3>读者若想制作自己的<FONT face="Times New Roman">M-book</FONT>文档,可调用本光盘任何一章的<FONT face="Times New Roman">DOC</FONT>文件为样板进行。注意:假若调用原英文<FONT face="Times New Roman">M-book</FONT>模版,则需通过若干设置才能在中文状态下正常运行。</FONT> <P><B><FONT face="Times New Roman" size=3></FONT></B> <P><FONT size=3><B>(<FONT face="Times New Roman">2</FONT></B><B>)<FONT face="Times New Roman">DOC</FONT></B><B>文件的开启</B></FONT> <P><FONT size=3>l</FONT> <FONT size=3>所有<FONT face="Times New Roman">DOC</FONT>文档都是在“<B><FONT face="Times New Roman">Word2000</FONT></B><B>中文版<FONT face="Times New Roman"> + MATLAB</FONT><st1:chmetcnv w:st="on" TCSC="0" NumberType="1" Negative="False" HasSpace="False" SourceValue="6.1" UnitName="”"><FONT face="Times New Roman">6.1</FONT>”</st1:chmetcnv>构成的</B><FONT face="Times New Roman">Notebook</FONT>环境中生成的。因此,在相同环境下开启是最佳选择。此时,文档具有“活性”。</FONT> <P><FONT size=3>l</FONT> <FONT size=3>假如读者的<FONT face="Times New Roman">MATLAB</FONT>与<FONT face="Times New Roman">Word</FONT>联接正确,用鼠标双击光盘上的<FONT face="Times New Roman">DOC</FONT>文件,就能直接进入<FONT face="Times New Roman">Notebook </FONT>环境。</FONT> <P><FONT size=3>l</FONT> <FONT size=3>若前述启动失败,可以先启动<FONT face="Times New Roman">MATLAB</FONT>,然后再启动光盘<FONT face="Times New Roman">DOC</FONT>文档。在很多情况下,这样的操作很可能奏效。</FONT> <P><FONT size=3>l</FONT> <FONT size=3>在不具备相同<FONT face="Times New Roman">Notebook</FONT>环境的情况下,<FONT face="Times New Roman">DOC</FONT>文档最好在<FONT face="Times New Roman">Word2000</FONT>环境中开启。此时电子文档虽然不“活”,但所有指令都能被准确地复制。</FONT> <P><FONT size=3>l</FONT> <FONT size=3>在<FONT face="Times New Roman">DOC</FONT>文件开启后,节次编号有可能显现得不很正确。这是由<FONT face="Times New Roman">Word</FONT>软件本身问题引起的。此时只要进行以下操作就可使编号正确:先使光标位于“章名”大标题上;然后点中工具条</FONT><v:shapetype><FONT size=3><FONT face="Times New Roman"> <v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path gradientshapeok="t" connecttype="rect" extrusionok="f"></v:path><LOCK aspectratio="t" v:ext="edit"></LOCK></FONT></FONT></v:shapetype><v:shape><v:imagedata></v:imagedata></v:shape><FONT size=3>样式栏右边的下拉菜单按键,引出下拉菜单;在这下拉菜单中再点寻标题<FONT face="Times New Roman">1</FONT>”菜单项,就能自动整理节次编号,使之正确。</FONT> <P><FONT face="Times New Roman" size=3></FONT> <P><FONT size=3><B>(<FONT face="Times New Roman">3</FONT></B><B>)光盘<FONT face="Times New Roman">DOC</FONT></B><B>文件的使用方法</B></FONT> <P><FONT size=3>l</FONT> <B><FONT size=3>作为演练环境使用</FONT></B> <P><FONT size=3>在正常打开的光盘<FONT face="Times New Roman">DOC</FONT>文件中,读者只要把光标放在绿色的输入细胞内,按组合键【<FONT face="Times New Roman">Ctrl + Enter</FONT>】,就可使该输入细胞重新执行计算。在演练中,读者可以通过对指令的修改、变化和重新运行,观察运算结果的变化,从而达到举一反三的效果。</FONT> <P><FONT size=3>l</FONT> <B><FONT size=3>作为样板使用</FONT></B> <P><FONT size=3>先打开光盘<FONT face="Times New Roman">DOC</FONT>文件,然后删去原光盘文件内容,再写入读者自己所需的内容,最后通过菜单项的“另存为”操作保存为自己的文件。这样获得的文件能正常地在<FONT face="Times New Roman">Notebook</FONT>环境下工作,也就是既可以输入文字、公式,又可以运行<FONT face="Times New Roman">MATLAB</FONT>指令、嵌入数值或图形结果;既拥有<FONT face="Times New Roman">Word</FONT>的所有文字处理能力,又具备<FONT face="Times New Roman">MATLAB</FONT>的运算、表现能力。</FONT> <H2><FONT face="Times New Roman">B.5<FONT size=5> </FONT>mfiles</FONT>文件夹上的<FONT face="Times New Roman">M</FONT>、<FONT face="Times New Roman">MDL</FONT>文件的使用</H2> <P><FONT size=3><FONT face="Times New Roman"></FONT>除不能用<FONT face="Times New Roman">M</FONT>、<FONT face="Times New Roman">MDL</FONT>文件表达的少数算例外,其余算例(占总数的<FONT face="Times New Roman">90%</FONT>以上)都以<FONT face="Times New Roman">M</FONT>文件或<FONT face="Times New Roman">MDL</FONT>文件形式刻录在光盘的<B><FONT face="Times New Roman"> \mfiles </FONT></B>文件夹中。</FONT> <P><FONT size=3><FONT face="Times New Roman"></FONT>本光盘<FONT face="Times New Roman">M</FONT>文件应在<FONT face="Times New Roman">MATLAB6.5</FONT>以上版本运行;涉及符号计算的应有<FONT face="Times New Roman">Symbolic Math Toobox <st1:chsdate w:st="on" IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899">2.1.3</st1:chsdate></FONT>以上版本<FONT face="Times New Roman"> </FONT>适配;<FONT face="Times New Roman">MDL</FONT>文件应有<FONT face="Times New Roman">SIMULINK5.0</FONT>以上版本适配。</FONT> <P><FONT size=3><FONT face="Times New Roman"></FONT>对于其他版本,或较低版的工具包,有些文件的运行可能会失败。但只要对个别指令稍加修改就可,有关这方面的叙述可参见相应印刷版。</FONT> <P><FONT size=3><B>(<FONT face="Times New Roman">1</FONT></B><B>)光盘<FONT face="Times New Roman">M</FONT></B><B>、<FONT face="Times New Roman">MDL</FONT></B><B>文件的功用</B></FONT> <P><FONT size=3>l</FONT> <FONT size=3><B>提供可直接运作的<FONT face="Times New Roman">M</FONT></B><B>源码文件</B></FONT> <P><FONT size=3>只要有<FONT face="Times New Roman">MATLAB</FONT>环境,本光盘上的<FONT face="Times New Roman">M</FONT>文件就可以运行。它的适用条件比<FONT face="Times New Roman"> \mbook </FONT>文件夹上的<FONT face="Times New Roman">DOC</FONT>文件宽松得多,也就是不管读者是否正确安装<FONT face="Times New Roman">Notebook</FONT>,不管文件产生的是动画还是交互操作界面,它们都能在<FONT face="Times New Roman">MATLAB</FONT>环境中正确执行。</FONT> <P><FONT size=3>每个算例文件都是完整的,可在<FONT face="Times New Roman">MATLAB</FONT>环境中直接运行的,所得结果与印刷版相对应。但出于运行方式不同的考虑,有些光盘<FONT face="Times New Roman">M</FONT>文件与印刷版文件指令可能会存在少许差别,目的是为把算例特征表现得更充分。</FONT> <P><FONT size=3>此外,本光盘提供的<FONT face="Times New Roman">M</FONT>文件中,有许多是很通用的,读者只要稍加修改,就可为己所用。</FONT> <P><FONT size=3>l</FONT> <FONT size=3><B>弥补了印刷版没有<FONT face="Times New Roman">SIMULINK</FONT></B><B>模型文件的缺陷</B></FONT> <P><FONT size=3>由于<FONT face="Times New Roman">SIMULINK</FONT>工作特点的缘故,所以迄今为止所有涉及<FONT face="Times New Roman">SIMULINK</FONT>的印刷版书籍中都没有能直接运行的模型文件。这给读者带来许多困惑和麻烦:一,读者如想验证书中结论,那就不得不从建模做起;二,仿真模块中的参数设置常使初学者顾此失彼,而造成仿真失败。本光盘上<FONT face="Times New Roman">MDL</FONT>模型文件都可直接在<FONT face="Times New Roman">MATLAB</FONT>中运行,进行验证。用户也可以在模型打开后,修改参数,观察变化。</FONT> <P><FONT face="Times New Roman" size=3></FONT> <P><FONT size=3><B>(<FONT face="Times New Roman">2</FONT></B><B>)<FONT face="Times New Roman">mfiles</FONT></B><B>文件夹上文件的放置规则</B></FONT> <P><FONT size=3>l</FONT> <FONT size=3><B><FONT face="Times New Roman">exm</FONT></B><B>为前缀的文件都是可直接运行的算例文件</B></FONT> <P><FONT size=3>前缀后的编号与算例编号对应。最左边的两位数字为“章”编号标注,其后的数字是“节”编号。具体举例如下:</FONT> <P><FONT size=3>【例<FONT face="Times New Roman"><st1:chsdate w:st="on" IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899">2.5.3</st1:chsdate>-2</FONT>】对应的<FONT face="Times New Roman">M</FONT>文件是<FONT face="Times New Roman">exm02053_2.m </FONT>;</FONT> <P><FONT size=3>【例<FONT face="Times New Roman"><st1:chsdate w:st="on" IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899">5.8.3</st1:chsdate>.5-3</FONT>】对应的<FONT face="Times New Roman">M</FONT>文件是<FONT face="Times New Roman">exm050835_3.m </FONT>;</FONT> <P><FONT size=3>【例<FONT face="Times New Roman"><st1:chsdate w:st="on" IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899">5.13.2</st1:chsdate>.3-2</FONT>】对应的<FONT face="Times New Roman">M</FONT>文件是<FONT face="Times New Roman">exm051323_2.m </FONT>;</FONT> <P><FONT size=3>【例<FONT face="Times New Roman"><st1:chsdate w:st="on" IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899">9.3.2</st1:chsdate>.1-1</FONT>】对应的<FONT face="Times New Roman">MDL</FONT>文件是<FONT face="Times New Roman">exm09321_1.mdl </FONT>;</FONT> <P><FONT size=3>【例<FONT face="Times New Roman"><st1:chsdate w:st="on" IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899">10.7.2</st1:chsdate>-1</FONT>】对应的是<FONT face="Times New Roman">exm10072_1.m </FONT>。</FONT> <P><FONT size=3>l</FONT> <FONT size=3><B>第<FONT face="Times New Roman">8</FONT></B><B>章中的<FONT face="Times New Roman">M</FONT></B><B>、<FONT face="Times New Roman">MDL</FONT></B><B>文件</B></FONT> <P><FONT size=3>第<FONT face="Times New Roman">8</FONT>章算例中存在同一个例题对应着<FONT face="Times New Roman">2</FONT>个同编号文件的情况。如【例<FONT face="Times New Roman"><st1:chsdate w:st="on" IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899">8.8.3</st1:chsdate>.2-1</FONT>】就有<FONT face="Times New Roman">exm<st1:chmetcnv w:st="on" TCSC="0" NumberType="1" Negative="False" HasSpace="False" SourceValue="80832" UnitName="m">080832m</st1:chmetcnv>_1.m</FONT>和<FONT face="Times New Roman">exm080832_1.mdl</FONT>两个文件。后者是该例的<FONT face="Times New Roman">SIMULINK</FONT>模型文件,而前者是与此例配套的<FONT face="Times New Roman">M</FONT>文件。使用时,要注意文件名上的微小差异。</FONT> <P><FONT size=3>l</FONT> <FONT size=3><B>其他非<FONT face="Times New Roman">exm</FONT></B><B>前缀文件是被调用文件</B></FONT> <P><FONT size=3><FONT face="Times New Roman"></FONT>在<FONT face="Times New Roman"> \mfiles </FONT>文件夹上还有一些不以<FONT face="Times New Roman">exm</FONT>为前缀的文件,它们不与算例直接对应,而是必不可少的被调用文件。在印刷版上可以找到有关它们的说明。</FONT> <P><FONT size=3>l</FONT> <FONT size=3><B><FONT face="Times New Roman">mfiles</FONT></B><B>的三个子文件夹</B></FONT> <P><FONT size=3>子文件夹<FONT face="Times New Roman"> \mfiles\@queue </FONT>存放着定义“队列”对象方法的重载文件。</FONT> <P><FONT size=3>子文件夹<FONT face="Times New Roman"> \mfiles\@stack </FONT>存放着定义“堆栈”对象方法的重载文件。</FONT> <P><FONT size=3>子文件夹<FONT face="Times New Roman"> \mfiles\private </FONT>存放着只能被<FONT face="Times New Roman">mfiles</FONT>夹上函数调用的函数文件。</FONT> <P><FONT face="Times New Roman" size=3></FONT> <P><FONT size=3><B>(<FONT face="Times New Roman">3</FONT></B><B>)<FONT face="Times New Roman">M</FONT></B><B>、<FONT face="Times New Roman">MDL</FONT></B><B>的使用方法</B></FONT> <P><FONT size=3><FONT face="Times New Roman"></FONT>直接在<FONT face="Times New Roman">MATLAB</FONT>指令窗中,运行(不带扩展名的)算例<FONT face="Times New Roman">M</FONT>文件名,就可得到相关结果。在此要再次提醒的是:必须把<FONT face="Times New Roman"> \mfiles </FONT>文件夹设置在<FONT face="Times New Roman">MATLAB</FONT>的搜索路径上<FONT face="Times New Roman"> </FONT>。</FONT> <H2><FONT face="Times New Roman">B.6<FONT size=5> </FONT>matlab_c</FONT>文件夹上各种文件的使用</H2> <P><FONT size=3><FONT face="Times New Roman"></FONT>基于第<FONT face="Times New Roman">11</FONT>章的特殊性,其配套软件文件也与其他章节不同:一,为第<FONT face="Times New Roman">11</FONT>章专设一个文件夹<FONT face="Times New Roman"> <B>\matlab_c</B> </FONT>;二,该文件夹上不仅包含算例文件,而且包含该章叙述内容中用到的文件;三,文件夹不仅存放着“进行编译操作的<FONT face="Times New Roman">M</FONT>文件”,而且存放着“被编译的<FONT face="Times New Roman">M</FONT>(或<FONT face="Times New Roman">C</FONT>)文件”和“编译得的<FONT face="Times New Roman">DLL</FONT>(或<FONT face="Times New Roman">EXE</FONT>)文件”。</FONT> <P><FONT size=3><B>(<FONT face="Times New Roman">1</FONT></B><B>)<FONT face="Times New Roman">matlab_c</FONT></B><B>文件夹上文件的功用</B></FONT> <P><FONT size=3>l</FONT> <B><FONT size=3>弥补印刷版不能提供完整算例文件的缺陷</FONT></B> <P><FONT size=3><FONT face="Times New Roman"></FONT>不管编译生成的是<FONT face="Times New Roman">DLL</FONT>文件,还是<FONT face="Times New Roman">EXE</FONT>文件,印刷版只能提供它们的运行结果,而不能给出文件本身。于是,读者也就无法亲自运作算例生成的目标文件。</FONT> <P><FONT size=3><FONT face="Times New Roman"></FONT>本文件夹可以完全克服印刷版的这一缺陷。</FONT> <P><FONT size=3>l</FONT> <FONT size=3><B>提供了读者练习<FONT face="Times New Roman">MATLAB</FONT></B><B>编译器所需的全部文件</B></FONT> <P><FONT size=3><FONT face="Times New Roman"></FONT>编译能否成功受被编译文件的正确性、<FONT face="Times New Roman">MATLAB</FONT>编译器能力、编译操作的正确性等诸多因素影响。本文件夹提供的算例文件可减轻读者挫折,帮助读者一个环节一个环节地克服练习中所遇到的困难。</FONT> <P><FONT face="Times New Roman" size=3></FONT> <P><FONT size=3><B>(<FONT face="Times New Roman">2</FONT></B><B>)该文件夹命名规则</B></FONT> <P><FONT size=3>l</FONT> <FONT size=3><B>进行编辑操作的<FONT face="Times New Roman">M</FONT></B><B>文件以<FONT face="Times New Roman">exm</FONT></B><B>为前缀,其后紧跟算例编号或节次编号</B></FONT> <P><FONT size=3>例如:</FONT> <P><FONT size=3>【例<FONT face="Times New Roman"><st1:chsdate w:st="on" IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899">12.1.4</st1:chsdate>-1</FONT>】对应的“编译操作<FONT face="Times New Roman">M</FONT>文件”是<FONT face="Times New Roman">exm12014_1.m </FONT>;</FONT> <P><FONT size=3>“第<st1:chsdate w:st="on" IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899"><FONT face="Times New Roman">12.2.2</FONT></st1:chsdate><FONT face="Times New Roman">.2</FONT>节(<FONT face="Times New Roman">1</FONT>)<FONT face="Times New Roman">mex</FONT>应用程序的验证”所对应的“编译操作<FONT face="Times New Roman">M</FONT>文件”是<FONT face="Times New Roman">exm120222_1.m </FONT>;</FONT> <P><FONT size=3>l</FONT> <B><FONT size=3>被编译文件和编译所得文件的名称与印刷版一致</FONT></B> <P><FONT face="Times New Roman" size=3></FONT> <P><FONT size=3><B>(<FONT face="Times New Roman">3</FONT></B><B>)使用方法</B></FONT> <P><FONT size=3>l</FONT> <FONT size=3><B>“编辑操作<FONT face="Times New Roman">M</FONT></B><B>文件”的使用方法</B></FONT> <P><FONT size=3>每个文件都可以在<FONT face="Times New Roman">MATLAB</FONT>指令窗中直接运行。请注意:一,操作前必须先把<FONT face="Times New Roman"> <B>\matlab_c</B> </FONT>设置在<FONT face="Times New Roman">MATLAB</FONT>的搜索路径上;二,操作后生成的目标文件被存放在<FONT face="Times New Roman"> <B>D:\mywork</B> </FONT>文件夹中(假如该夹不存在,在操作过程中会自动创建)。</FONT> <P><FONT size=3>l</FONT> <B><FONT size=3>“被编译文件”的使用</FONT></B> <P><FONT size=3><FONT face="Times New Roman"></FONT>本文件夹上的“被编译(<FONT face="Times New Roman">M</FONT>或<FONT face="Times New Roman">C</FONT>)文件”是专供读者学习第<FONT face="Times New Roman">11</FONT>章时使用的。它们的存在可避免因“被编程序自身的不适当”而导致编译失败。</FONT> <P><FONT size=3>l</FONT> <B><FONT size=3>“编译所得文件”的使用</FONT></B> <P><FONT size=3><FONT face="Times New Roman"></FONT>本文件夹上的“编译所得的(<FONT face="Times New Roman">DLL</FONT>或<FONT face="Times New Roman">EXE</FONT>)文件”是专供读者对照验证用的。</FONT> <P><FONT size=3><FONT face="Times New Roman"></FONT>对于<FONT face="Times New Roman">DLL</FONT>文件来说,只要在<FONT face="Times New Roman">MATLAB</FONT>指令窗中输入相应文件名就可运行,并给出结果。</FONT> <P><FONT size=3><FONT face="Times New Roman"></FONT>但对于<FONT face="Times New Roman">EXE</FONT>文件来说,假如读者想在<FONT face="Times New Roman">DOS</FONT>环境中运行<FONT face="Times New Roman"> \matlab_c </FONT>文件夹上的<FONT face="Times New Roman">EXE</FONT>文件,那么必须注意:或把<FONT face="Times New Roman"> \matlab_c </FONT>设置为<FONT face="Times New Roman">DOS</FONT>环境下的当前文件夹,或使运行文件带完整的路径。</FONT> <H2><FONT face="Times New Roman">B.7<FONT size=5> </FONT>matlab_api</FONT>文件夹上各种文件的使用</H2> <P><FONT size=3><FONT face="Times New Roman"></FONT>该文件夹上的文件是供读者实践第<FONT face="Times New Roman">12</FONT>章内容使用的。该文件加上文件类型较多,各种文件所需的软件环境很不相同。为保证运行成功,请读者仔细阅读第<FONT face="Times New Roman">12</FONT>章的相关内容。</FONT> <P><FONT size=3><FONT face="Times New Roman"></FONT>该文件夹上的文件编号原则与全书一致,与第<FONT face="Times New Roman">12</FONT>章相应算例编号对应。</FONT> <P><FONT size=3><FONT face="Times New Roman"></FONT>象运行<FONT face="Times New Roman">matlab_c</FONT>文件夹上的文件一样,在运行<FONT face="Times New Roman">matlab_api</FONT>文件夹文件时,要特别注意所运作文件是否在当前目录或搜索路径上。</FONT> <H2><FONT face="Times New Roman">B.8<FONT size=5> </FONT>PowerMatlab</FONT>文件夹上的<FONT face="Times New Roman">PPT</FONT>文件的使用</H2> <P><FONT size=3><FONT face="Times New Roman"></FONT>该文件夹上存放着<FONT face="Times New Roman">3</FONT>个<FONT face="Times New Roman">PPT</FONT>文件及其附属文件。要运行这三个<FONT face="Times New Roman">PPT</FONT>文件,必须在机器上事先安装<FONT face="Times New Roman">PowerPoint </FONT>。</FONT> <P><FONT size=3><B>(<FONT face="Times New Roman">1</FONT></B><B>)<FONT face="Times New Roman">PPT</FONT></B><B>文件的功用</B></FONT> <P><FONT size=3>l</FONT> <FONT size=3><B>弥补印刷版无法提供<FONT face="Times New Roman">PowerPoint</FONT></B><B>源码文件的缺点</B></FONT> <P><FONT size=3><FONT face="Times New Roman"></FONT>本书第<FONT face="Times New Roman">13.4</FONT>节介绍的科技演讲稿涉及三个不同软件:<FONT face="Times New Roman">PowerPoint , Word , MATLAB</FONT>之间的链接。算例<st1:chsdate w:st="on" IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899"><FONT face="Times New Roman">13.4.1</FONT></st1:chsdate><FONT face="Times New Roman">-1</FONT>、<FONT face="Times New Roman">13.4.2-1</FONT>和<FONT face="Times New Roman">13.4.3-1</FONT>虽对<FONT face="Times New Roman">PPT</FONT>文件的制作进行了比较详细地介绍,但无法以习惯的文字方式向读者提供<FONT face="Times New Roman">PowerPoint</FONT>源码文件。这无疑给读者演练这两个算例带去困难。</FONT> <P><FONT size=3><FONT face="Times New Roman"></FONT>光盘上的<FONT face="Times New Roman">E_book.ppt </FONT>,<FONT face="Times New Roman">exm13042_1.ppt </FONT>,<FONT face="Times New Roman">exm13043_1.ppt</FONT>文件可以直接运行,播放幻灯,并导出相应的交互界面。</FONT> <P><FONT size=3>l</FONT> <B><FONT size=3>提供制作科技演讲稿的样本</FONT></B> <P><FONT size=3>光盘上提供的<FONT face="Times New Roman">3</FONT>个<FONT face="Times New Roman">PPT</FONT>文件具有典型性。<FONT face="Times New Roman">E_book.ppt </FONT>可以在幻灯演讲中进行多章节切换并引入复杂的现场计算;<FONT face="Times New Roman">exm13042_1.ppt </FONT>则可以从幻灯演讲中直接导出进行科学计算的交互界面;<FONT face="Times New Roman">exm13043_1.ppt </FONT>则可以幻灯放映过程中现场进行科学计算。</FONT> <P><FONT face="Times New Roman" size=3></FONT> <P><FONT size=3><B>(<FONT face="Times New Roman">2</FONT></B><B>)<FONT face="Times New Roman">PPT</FONT></B><B>文件的使用方法</B></FONT> <P><FONT size=3><FONT face="Times New Roman"></FONT>关于<FONT face="Times New Roman">E_book.ppt </FONT>、<FONT face="Times New Roman">exm13042_1.ppt </FONT>和<FONT face="Times New Roman">exm13043_1.ppt</FONT>的使用方法,在印刷版第<st1:chsdate w:st="on" IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899"><FONT face="Times New Roman">13.4.1</FONT></st1:chsdate>、<FONT face="Times New Roman">13.4.2</FONT>、<FONT face="Times New Roman">13.4.3</FONT>节有详细的叙述。</FONT> <H2><FONT face="Times New Roman">B.9<FONT size=5> </FONT></FONT>其他</H2> <P><FONT size=3>在本书印刷版发行后,光盘软件的更新内容将通过光盘上所带的<FONT face="Times New Roman">Readme</FONT>文件发布。</FONT>[Money=10][/Money]</P>[Money=10][/Money] |
|
熟悉论坛请点击新手指南
|
|
| 下载说明 | |
|
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。 2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。 3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。 (如有侵权,欢迎举报) |
|
京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明