- 1、本文档共101页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Debug example % SIMP script file clear a=1; b=2; keyboard c=23; d=[a b c]; keyboard e=eye(2); % Last line of simp.m ? simp K? who Your variables are: a b K? return K? who Your variables are: a b c d K? c c = 23 K? return ? who Your variables are: a b c d e Note: “keyboard” means keyboard stop, then continue execute * Reference USENET NEWS Forum for MATLAB Users Read the group comp.soft-sys.matlab MathWorks /education/ Anonymous FTP Archive FTP to The MathWorks Newsletter Quarterly publication, subscribe to newsletter@ Textbooks Incorporating MATLAB /education/books.shtml * Thanks!chyhzh@2012@BUPT * 实验中可能用到的重要函数 基本运算 冒号,逻辑运算 sin(), cos(), exp()… zeros(), ones(), fft()… 画图函数 stem(), plot(), subplot()…. xlabel(), ylabel(), axis(), title()… 滤波器设计函数 buttord(), butter(), cheb1ord(), cheby1(), blackman(), hanning(), hamming, freqz(), fir1()… * 需要提交的电子版的东西 实验报告 matlab代码 结果图 * 提交时间与方式 时间 实验验收后两天内 方式 把电子版实验报告、matlab代码、结果图放到以“班级号_北邮学号_姓名”的格式命名文件夹里。 如:2010215101 _李启晗 各个小班学委搜集全本班同学的电子版提交物,打包后在规定时间内发到anlu@。邮件正文注明哪些同学没有提交。 * 实验课验收 运行程序 提交纸质版实验报告 * 1 * * * * * * * * * * * * * * * * * * * * * * * * * MATLAB draw: 3D meshc(Z) 0 10 20 30 40 50 0 10 20 30 -0.5 0 0.5 note: meshc(x,y,Z) can provide more targeted axis * -2 -1 0 1 2 -1 -0.5 0 0.5 1 -0.5 0 0.5 mesh(x,y,Z),view(-15,40) MATLAB draw: 3D meshc(Z) * relational calculus matrix compare two equal size matrix elements to elements Result is 0 and 1 matrix If true, then put 1 If false, then put 0 e.g. Note that the comparison is only true for the first elements of the matrices * MATLAB provide“6 relational operator” less than = less than or equal greater than = greater than or equal == equal ~= unequal Compare result is same dimension “1” and “0” matrix ( whos ) ? n=0:9; div3=(rem(n,3) = = 0) n = 0 1 2 3 4 5 6 7 8 9 div3 = 1 0 0 1 0 0
文档评论(0)