- 1、本文档共48页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Matlab for Engineering Applications Introduce [教程]
Matlab for Engineering ApplicationsIntroduced by Jen-Yang Chen (陳珍源)Department of Electronic EngineeringMing 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
您可能关注的文档
- Java Applet小应用程序示例.ppt
- Java 技术应用介绍 移动agent.ppt
- java 进门到精通.ppt
- IT行业经典模版.ppt
- javascript开发教程.ppt
- JavaScript内置函数和对象.ppt
- JavaScript语言简介及设计教程.ppt
- JavaScript网页开发技术课件.ppt
- Java基础知识.ppt.ppt
- java常用类课件.ppt
- 3.2基因工程的基本操作程序第2课时说课稿-2024-2025学年高二下学期生物人教版选择性必修3.docx
- 新媒体时代广告效果研究.docx
- 新媒体时代大学生亚文化现象的批判性分析基于社会心态的视角.docx
- 4.4化学式与化合价(第二课时)说课稿---2023-2024学年九年级化学人教版上册.docx
- 新媒体时代下的弹幕文化研究——以bilibili弹幕视频网视频《电音单曲.docx
- 新媒体环境下大学生心理特点及引导策略研究.docx
- 新媒体时代青少年的冲突表达与价值引导.docx
- 新媒体时代青年群体的弹幕文化现象浅析.docx
- 新媒体时代短视频发展现状及趋势.docx
- 新媒体时代的网络直播与直播营销.docx
文档评论(0)