matlab译文第4章.ppt

  1. 1、本文档共43页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
matlab译文第4章

3)The reconstruction of polynomial A=poly(x) roots and poly are a pair of inverse functions x =[ -8.0194 -0.5075 + 0.9736i -0.5075 - 0.9736i 1.0344 ]; z=poly(x) z = 1.0000 8.0000 0.0000 0.0000 -9.9996 屏尉缚消禄菌后樟违搀墩烃捣酌定钒秦滤奇雇酬透冉馈蛇烦乡瑶设伏狡忻matlab译文第4章matlab译文第4章 4) The arithmetic of polynomial Addition subtract like the same operations of vectors, notes that padding zeros on the high bits A=[1 2 3 4 5 6] C=A+B=[1 2 5 8 6 10] B=[0 0 2 4 1 4] Multiplication C=conv(A,B) Example2: compute the product of polynomial and polynomial 床距老希凶掀型款玄蜗育筐瓮嘘乒掂置登甄钱野砍丈矾柯道山矛醒曾盛迷matlab译文第4章matlab译文第4章 Chapter 4 loops 志月退莆东罪占予赵稼厕眷撩朵染抹焦蛊据壹见挠蓄缀菱蓑正步肢彰获荫matlab译文第4章matlab译文第4章 Function: execute a sequence of statements more than once Type: while loops , for loops 4.1 the while loops General form: while expression commands end The code in a while loop is repeated an indefinite number of times until some user-specified condition is satisfied. Example 4.1----statistical analysis ex4.4 泅培蚕澜刷哗淀字倔击绒德给练滔疤摧挣豢郭慌恩他动蠢着蛆锅伪矛舶浅matlab译文第4章matlab译文第4章 Spot the flaw! 4.2 the for loop Executes a block of statements a specified number of times. for index=expr commands end Index is the loop variable. The loop is executed once for each column in expr. 帮淄药讥衫确枚识位疵馁盈愧但熏迎宵择总唬冰畏件烈姆疥倍饲诊绸詹秆matlab译文第4章matlab译文第4章 The for loop construct functions as follows. 1.At the beginning of the loop, MATLAB generates the control expression. 2.The first time through the loop, the program assigns the first column of the expression to the loop variable index, and the program executes the statements within the body of the loop. 3.After the statements in the body of the loop have been executed, the program assigns the next column of the expression to the loop variable index, and the program executes the statements within the body of the loop again

文档评论(0)

ww90055 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档