网站大量收购闲置独家精品文档,联系QQ:2885784924

Matlab for Engineering Applications Introduce [教程].ppt

Matlab for Engineering Applications Introduce [教程].ppt

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

Matlab for Engineering Applications Introduced by Jen-Yang Chen (陳珍源) Department of Electronic Engineering Ming Chuan University Introduction Matlab: Matrix Laboratory Matlab is both a computer programming language and a software environment for using language effectively. Matlab has a number of add-on software modules, called toolboxes, that perform more specialized computations, dealing with applications such as Image and signal processing Financial analysis Control systems design Communication systems Fuzzy logic Neural networks Filter design Optimization Partial differential equations Statistics System identification Virtual reality Wavelet … Contents Matlab Windows and Menus Basic Operations and Arrays Files, Functions Plotting with Matlab Programming with Matlab Numerical Methods for Differential Equations 1. Matlab Windows and Menus 1. Matlab Windows and Menus Enter commands and expressions at the prompt position () in command window. Ex: r = 8/10 1. Matlab Windows and Menus u = [0:.1:10] ? u = 0,0.1,0.2,0.3,…,9.8,9.9,10 z = 5*sin(u) ? z = 5sin(0), 5sin(0.1), …5sin(9.9), 5sin(10). 1. Matlab Windows and Menus We can create a new program file, called M-file, using a text editor. 1. Matlab Windows and Menus 2. Basic Operations and Arrays Row vector r = [2,4,10]; n = [2,4,10] n = 2 4 10 n = [2 4 10] n = 2 4 10 Column vector r = [2; 4;10] r = 2 4 10 y = [ 2 4 10]’ y = 2 4 10 Ex: r =[ 2 4 10] v = 5*r v = [10 20 50] w = r + v w = [12 24 60] u = [r, w] u = [2 4 10 12 24 60] Ex: Creat a row vector from 5 to 30, incremented by 0.1. t = [5:0.1:30] t = 5, 5.1,5.2,…, 29.8,29.9,30. 2. Basic Operations and Arrays Matrix a = [2,4,10;16,3,7] a = 2 4 10 16 3 7 Ex: A = [6, -2;10,3;4,7], B = [9,8;-5,12] A*B ans 64 24 75 116 1 116 Array operations Ex: a =[1:5]; b = [3:7]; a = [1:5] a = 1 2 3 4 5 b = [3:7] b = 3 4 5 6 7 c = a .* b c = 3 8 15 24 35 c = a ./ b c = 0.333 0.5 0.6 0.667 0.7143 c = a .^ b c = 1 16 243 40

文档评论(0)

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

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

1亿VIP精品文档

相关文档