Lecture12:Matlab简介(一) 张伟平 Monday 30th November,2009
Lecture 12: Matlab {0(ò) ‹ï² Monday 30th November, 2009
Contents 1 Introduction y 1.1 GUI and Basic functions ............ 2 1.1.1 Command Window............... 4 1.1.2 Command History·。····。····· 7 1.1.3 MatLab Help.·············· 9 2 Data in MatLab 10 2.1 Manipulating data.·.·. 13 2.1.1 Creating Objects 4 15 2.1.2 Operators.................24 3 Graphics 33 3.1 Use plotting tools....·.··. ···4·4..。..33 3.2 Use the command interface.... ·····..34 3.2.1 Basic plots····.··· 34 3.2.2 Adding Plots to an Existing Graph..········ 37 3.2.3 Multiple Plots in One Figure........·.··· 38 3.2.4 Controlling the Axes..................39 Previous Next First Last Back Forward 2
Contents 1 Introduction 1 1.1 GUI and Basic functions . . . . . . . . . . . . . . . . . . . . 2 1.1.1 Command Window . . . . . . . . . . . . . . . . . . . 4 1.1.2 Command History . . . . . . . . . . . . . . . . . . . 7 1.1.3 MatLab Help . . . . . . . . . . . . . . . . . . . . . . 9 2 Data in MatLab 10 2.1 Manipulating data . . . . . . . . . . . . . . . . . . . . . . . 13 2.1.1 Creating Objects . . . . . . . . . . . . . . . . . . . . 15 2.1.2 Operators . . . . . . . . . . . . . . . . . . . . . . . . 24 3 Graphics 33 3.1 Use plotting tools . . . . . . . . . . . . . . . . . . . . . . . . 33 3.2 Use the command interface . . . . . . . . . . . . . . . . . . 34 3.2.1 Basic plots . . . . . . . . . . . . . . . . . . . . . . . 34 3.2.2 Adding Plots to an Existing Graph . . . . . . . . . . 37 3.2.3 Multiple Plots in One Figure . . . . . . . . . . . . . 38 3.2.4 Controlling the Axes . . . . . . . . . . . . . . . . . . 39 Previous Next First Last Back Forward 2
3.2.5 Axis Labels and Titles.·..·.·····.····· 3.3 Mesh and Surface Plots·················· 42 3.4 Creating Specialized Plots.·...·········· 3.5 Advanced plotting......。.。.........·..·· 48 Previous Next First Last Back Forward 1
3.2.5 Axis Labels and Titles . . . . . . . . . . . . . . . . . 40 3.3 Mesh and Surface Plots . . . . . . . . . . . . . . . . . . . . 42 3.4 Creating Specialized Plots . . . . . . . . . . . . . . . . . . . 44 3.5 Advanced plotting . . . . . . . . . . . . . . . . . . . . . . . 48 Previous Next First Last Back Forward 1
Chapter 1 Introduction MATLAB的名称源自Matrix Laboratory,它是一种科学计算软件,专门以 矩阵的形式处理数据.matlab将高性能的数值计算和可视化集成在一起,并 提供了大量的内置函数,从而被广泛地应用于科学计算、控制系统、信息处 理等领域的分析、仿真和设计工作,而且利用matlab产品的开放式结构, 可以非常容易地对natlab的功能进行扩充,从而在不断深化对问题认识的同 时,不断完善matlab产品以提高产品自身的竞争能力. atlab特性: 。数值计算的功能:矩阵的运算,分析,线性代数求解,微分方程式,稀疏 矩阵,特殊函数之处理,傅利叶转换,资料分析; 。绘图功能:2D,3D,三维图形处理,声音及动画处理. Previous Next First Last Back Forward 1
Chapter 1 Introduction MATLAB¶° g Matrix Laboratory, ߥò´âÆOé^á, ;ı › /™?nÍ‚. matlab Úp5UÍäOé⁄å¿z8§3òÂ, ø J¯ å˛SòºÍ, l 2ç/A^uâÆOé !õõX⁄!&E? n+穤!ï˝⁄OÛäß Ö|^ matlab ¨mò™(ß å±ö~N¥/È matlab ıU?1*ø, l 3ÿ‰zÈØK@£” û, ÿ‰ı matlab ¨± Jp¨gøUÂ. MatlabA5µ ➤ ÍäOéıU: › $é, ©¤, Ç5ìͶ), á©êß™, D’ › , AœºÍÉ?n, F|ì=Ü, ]©¤; ➤ ±„ıU: 2D, 3D, në„/?n, (—9ƒx?n. Previous Next First Last Back Forward 1
。程式语言功能:语言简单易学,并把编辑,编译,连接,执行功能融为一体, 调试程序手段丰富. 。绘图介面设计的功能:下拉式功能表之设计,按纽设计,滑跟处理。 。强大的工具盒:控制系统,模糊逻辑,影像处理,频谱分析,信号处理器, 统计,偏微分方程,类神经网路 扩充功能:matlab compiler,matlabC数学程式库。 1.1 GUI and Basic functions 启动Matlab后,在菜单栏中:Desktop-Desktop Layout-Default这样就选 择了默认的桌面模式.此时,在屏幕上可以看到以下界面 *Menu:包括File,Edit,View,Debug,Desktop,Vindow,Help等菜 单. *Toolbar:工具栏,就是菜单栏下面那些图标. Previous Next First Last Back Forward 2
➤ ß™äÛıU: äÛ{¸¥Æ, ør?6,?»,Î,â1ıUKèòN, N£ßSÄ¥L. ➤ ±„0°OıU: e.™ıULÉO, U‹O, w‡?n. ➤ råÛ‰›: õõX⁄, ‹6, Kî?n, ™Ã©¤, &“?nÏ, ⁄O, †á©êß, a ²¥ ➤ *øıU: matlab compiler, matlabC ÍÆß™•" 1.1 GUI and Basic functions ȃMatlab, 3˸9•: Desktop - Desktop Layout - Default ˘“¿ J %@S°™. dû, 3¶4˛å±w±e.° ✲ Menu: ù)File, Edit, View, Debug, Desktop, Window, HelpË ¸. ✲ Toolbar: Û‰9, “¥Ë¸9e°@ „I. Previous Next First Last Back Forward 2