




已阅读5页,还剩20页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Introduction to MATLAB Week 13 4/21/09 Instructor: Kate Musgrave Time: Tuesdays 3-5pm Office Hours: Tuesdays 1:30-3pm Email: Website: /gradprog/ programming/ Syllabus Week 13: T 4/21 Intro to MATLAB MATLAB GUI Variables Operations Week 14: T 4/28 Functions and scripts Programming style Comments Flow control File I/O Week 15: T 5/5 Graphics Plot types Figure window Figure properties Figures: special topics Week 16: T 5/12 MATLAB toolboxes Statistics Signal processing Special topics What is MATLAB? MATLAB stands for MATrix LABoratory As such, it is optimized for matrix manipulation MATLAB is useful for visualization and data analysis MATLAB is versatile, designed to work the same across platforms and to interface with multiple programming languages MATLAB is expandable with toolboxes Starting MATLAB Type matlab into a terminal window Double-click matlab icon in windows env Troubleshooting: license file Check for connection to internet and vpn Check for updated license file Keep trying over time if too many connections detected, problem will fix itself eventually MATLAB Environment The MATLAB environment is designed to run as a GUI (graphical user interface) There is also a text-only version of MATLAB, which generally occurs when logging in remotely with an improperly set X11 forwarding Some options in MATLAB require the GUI, though most can be run in text-only mode Text-only mode not recommended MATLAB GUI MATLAB GUI Current Directory MATLAB GUI Current Directory Setting the path: You need to set up what directory to save your files to Multiple options: directory commands, current directory path, current directory window Directory commands: pwd, cd, dir, ls, path, editpath, copyfile, mkdir When in doubt, check your path MATLAB GUI Command Window MATLAB GUI Workspace MATLAB GUI Variable Editor MATLAB GUI Command History MATLAB GUI Additional Windows Editor window Will discuss next week with scripts and functions Figure window Will discuss in two weeks with graphics MATLAB Help Three common ways to access: Type help topic at command line Select help from drop-down menus (opens help window) Mathworks website help, helpwin, helpdesk MATLAB help is very comprehensive MATLAB Resources Getting Started with MATLAB 7 (Pratap) Mastering MATLAB 7 Additional online resources A note of caution: methods that work in earlier versions of MATLAB do not necessarily work in later versions. Deprecated options are not obvious, so basically you just need to test them out. Generally dealing with objects (figures) has shown the most change. Variables Types Numeric Logical Strings and Character (discussed further with file I/O) Cell arrays and structures (discussed further with file I/O) Function handles (discussed further with graphics) Variables Names Must start with a letter Can contain any combination of letters, digits, and underscores Distinguishes between upper and lower case Dont use function names namelengthmax, which all var_name, isvarname Variables Names Special functions that are already defined, but can be overwritten (temporarily) pi, i, j, eps, realmin, realmax, Inf, NaN Operations + Addition - Subtraction * Multiplication / Division Power Matrix transpose () Specify order Order of Operations Standard order of operations is enforced in MATLAB Parentheses Exponentiation Multiplication and Division Addition and Subtraction When in doubt, add parentheses MATLAB can help you keep track of () Elementary functions abs sqrt exp sin Logical Operations &
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 高标准农田机械化施工安全措施他
- 教师教研活动培训心得体会
- 西师版小学数学六年级上册线上教学计划
- 七年级数学家庭辅导复习计划
- 教师提升课堂效率双减心得体会
- 钢结构厂房施工方案变更控制措施
- 国有企业事业单位面试自我介绍注意事项与范文
- 落实“双减”政策课后服务措施
- 三年级上学期语文素质拓展计划
- 部编版六年级语文下册期末复习重点计划
- GB/T 27548-2011移动式升降工作平台安全规则、检查、维护和操作
- GB/T 10326-2016定形耐火制品尺寸、外观及断面的检查方法
- 钢网架施工记录
- 2003年北京市高考物理试卷
- 消防系统维保与方案
- 社区卫生服务中心工作制度与人员岗位职责
- 国开《监督学》形考任务3试题和答案
- DB63T1743-2019青海省建筑工程资料管理规程
- 幼儿园安全教育:《马路上的安全》 PPT课件
- 125万吨硫铁矿斜坡道施工组织设计
- 义务教育数学课程标准(2022年版)课件PPT
评论
0/150
提交评论