香港理工大学:Introduction of Matlab(PPT讲稿)

Lab of comp 406 Introduction of Matlab) Teaching Assistant: Pei-Yuan Zhou Contact: cspyzhou(@comp. polyu.edu. hk Lab 1: 12 Sep, 2014
1 Lab of COMP 406 Teaching Assistant: Pei-Yuan Zhou Contact: cspyzhou@comp.polyu.edu.hk Lab 1: 12 Sep., 2014 Introduction of Matlab (I)

Outline Matlab description Where is matlab · What is matlab Matlab Desktop MATLAB Math Operators Matrix and Array Creation, Operation. Concatenation Workspace variables Calling Functions
Outline ➢ Matlab Description • Where is Matlab • What is Matlab • Matlab Desktop • MATLAB Math Operators ➢ Matrix and Array • Creation, Operation, Concatenation ➢ Workspace Variables ➢ Calling Functions 2

What iS matlab? MATLAB MATrix LABoratory: matlab is a program for doing numerical computation. It was originally designed for solving linear algebra type problems using matrices. It's name is derived from MATrix Laboratory MatLab has since been expanded and now has built-in functions for solving problems requiring data analysis, signal rocessing optimization and several other types of scientific computations. It also contains functions for 2-D and 3-D graphics and animation
3 What is MATLAB ? • MATLAB – MATrix LABoratory: MATLAB is a program for doing numerical computation. It was originally designed for solving linear algebra type problems using matrices. It’s name is derived from MATrix LABoratory. – MATLAB has since been expanded and now has built-in functions for solving problems requiring data analysis, signal processing, optimization, and several other types of scientific computations. It also contains functions for 2-D and 3-D graphics and animation

Where is matlab? Find the matlab under the folder 1. Y: Win32 Matlab R2012a 2. Double click it and open Matlab Or open matlab on your computer 1. Click 'Start' 2. Click Run 3. Input ' nalwin32' 4. Find the Matlab under the folder /Network application Packages/Statistical Mathematical/Matlab Send shortcut to your folder, for example: J: starry If you have any problem, please contact the technical staffs in P0608(P508). They are very nice and helpful
Where is Matlab? • Find the Matlab under the folder – 1. Y:\Win32\Matlab\R2012a – 2. Double click it and open Matlab • Or open Matlab on your computer – 1. Click 'Start' – 2. Click 'Run' – 3. Input 'nalwin32' – 4. Find the Matlab under the folder /Network Application Packages/Statistical & Mathematical/Matlab • Send shortcut to your folder, for example: J:\starry If you have any problem, please contact the technical staffs in PQ608 (P508). They are very nice and helpful. 4

MATLAB Description Considering matlab at home Standard edition Available for roughly 2 thousand dollars Student edition Available for roughly I hundred dollars Some limitations such as the allowable size of a matrix http:/www.mathworks.com/products/matlab/
5 MATLAB Description • Considering MATLAB at home – Standard edition • Available for roughly 2 thousand dollars – Student edition • Available for roughly 1 hundred dollars. • Some limitations, such as the allowable size of a matrix http://www.mathworks.com/products/matlab/

Matlab Desktop( Cont MATLAB712.0(R2011a) x File Edit Debug Desktop window Help 日%部日0mtF贴1回 Launch pad Shortcuts a How to Add a what's New Current FolderIt口x| ommand window日 space 中口X bm·s·国№MA购回圆哈喝5 tack: Base E Select data to减 DName L >A=eye(4,4) Name△ Vaue 口 m3iregistr t registry outil +o win32 000 a deploytool bat Iworkzsngce s insttype ini p 出 cdata. xm a cdata.xsd 0 自 Current 压x Command History Hy= sin(x) irectory plot (x, y) Command xlabel(x= 0: 2\ a mexext bat Hylabel( Sine of History 回 mexsetup pm Window title( Plot of the Sine Function T mexutilspm lc m msvc modules installe clear all Details A=eye(4,4) a Start 6
6 Matlab Desktop (Cont.) Workspace Current Directory Command Window History Launch Pad

Matlab Desktop(cont Current Folder Access your files Command window Enter commands at the command line, indicated by the prompt Workspace view program variables double click on a variable to see it in the array editor Explore data that you create or import from files Command history View or rerun commands that you entered at the command line Launch pad access help, tools, demos and documentation
7 • Current Folder – Access your files • Command Window – Enter commands at the command line, indicated by the prompt (>>). • Workspace – view program variables – double click on a variable to see it in the Array Editor – Explore data that you create or import from files • Command History – View or rerun commands that you entered at the command line • Launch Pad – access help, tools, demos and documentation Matlab Desktop (cont.)

Command window The matlab environment is command oriented somewhat like UNIX. A prompt(>)appears on the screen and a matlab statement can be entered. When the key is pressed, the statement is executed, and another prompt appears If a statement is terminated with a semicolon(; ) no results will be displayed. Otherwise results will appear before the next prompt a b=a/2 b 2.5000
8 Command window • The MATLAB environment is command oriented somewhat like UNIX. A prompt (>>) appears on the screen and a MATLAB statement can be entered. When the key is pressed, the statement is executed, and another prompt appears. • If a statement is terminated with a semicolon ( ; ), no results will be displayed. Otherwise results will appear before the next prompt. » a=5; » b=a/2 b = 2.5000 »

MATLAB Math Operators Power Multiplication (matrix multiply) or . (array multiply) b or a*b Division a or ba b. a NOTE 56/8=8\56 Addition a b Subtraction a Assignment b(assign b to a) coSo Cosine value of a specific angle Sine value of a specific angle
9 MATLAB Math Operators Power ^ or .^ a^b or a.^b Multiplication * (matrix multiply) or .* (array multiply) a*b or a.*b Division / or ./ a/b or a./b or \ or .\ b\a or b.\a NOTE: 56/8 = 8\56 Addition + a + b Subtraction - a - b Assignment = a = b (assign b to a) * cos() Cosine value of a specific angle * sin() Sine value of a specific angle

As you work in MATLAB, you issue commands that ven EX1 create variables and call functions. For example, create a variable named a by typing this statement at the command Ine a=1 MATLAB adds variable a to the workspace and displays the result in the command window ry more b=2 c=a+b d=cos(a)
Ex1 • As you work in MATLAB, you issue commands that create variables and call functions. For example, create a variable named a by typing this statement at the command line: a = 1 • MATLAB adds variable a to the workspace and displays the result in the Command Window. • Try more: b = 2 c = a + b d = cos(a) 10
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 《高等数学》课程教学资源(PPT课件讲稿)函数的单调性与曲线的凹凸性.ppt
- 《高等数学》课程PPT教学课件:第九章 重积分(二重积分的概念与性质).ppt
- 吉林大学:《大学文科数学》课程PPT教学课件(微积分学)导数在经济数量分析中的应用.ppt
- 中国科学技术大学:《离散数学》课程教学资源(PPT课件讲稿)第四章 有限集和无限集.pptx
- 《高等数学》课程PPT教学课件:数列的极限.ppt
- 运城学院应用数学系:多连通区域上复边界元及其应用(刘俊俏).ppt
- 北京师范大学:《大学文科高等数学》课程教学资源(PPT课件)第一部分 初等微积分 第一章 集合与函数.ppt
- 西安电子科技大学:《概率论与数理统计》课程教学资源(PPT课件讲稿)第五章 大数定律及中心极限定理.ppt
- 极限运算法则(PPT讲稿).pps
- 证明数学归纳法和良序原理等价.pptx
- 《信息论》课程PPT教学课件:第二章 信息量和熵.ppt
- 《高等数学》课程PPT教学课件:第九章 多元函数微分法及其应用 第六节 多元函数微分学的几何应用.ppt
- 厦门大学线:《线性代数》课程教学资源(PPT课件)分块矩阵.pptx
- 南阳师范学院:《高等数学》课程教学资源(练习题)第九章 重积分.pdf
- 二次型(二次型及其标准形、二次型的矩阵表示法、二次型经可逆变换后的矩阵).ppt
- 上海交通大学:《线性代数》课程教学资源(PPT课件讲稿)二次型 quadratic form.pptx
- 数学建模的发展战略与应用数学的未来.ppt
- 河南理工大学:数学建模论文写作规范.ppt
- 方向导数与梯度(方向导数的定义、梯度的概念).ppt
- 《概率论与数理统计》课程PPT教学课件(第四版)第七章 假设检验 §7.1 假设检验的基本概念.ppt
- 《高等数学》课程教学资源(PPT课件讲稿)实数.ppt
- 《概率论与数理统计》教程PPT教学课件(第四版)第六章 参数估计 §6.1 参数的点估计.ppt
- 《高等数学》课程PPT教学课件(讲稿)三重积分(概念、计算).ppt
- 清华大学数学科学系:2019年博士生招生简章.pdf
- 《高等数学》课程PPT教学资源(章节讲解)一般周期函数的傅立叶级数.ppt
- 《高等数学》课程教学资源(PPT课件讲稿)具有某些特性的函数.ppt
- 北京师范大学:《高等数学》课程教学资源(PPT课件讲稿)第五章 连续函数(主讲:郇中丹).ppt
- 约瑟夫问题(PPT讲稿)Josephus problem.pptx
- 西安电子科技大学:《基于MATLAB的概率统计数值实验》教学资源(PPT讲稿)随机变量及其分布.ppt
- 欧式空间(PPT讲稿).ppt
- 《概率论与数理统计》课程教学资源(PPT课件讲稿)等可能概型(古典概型).ppt
- 《数学模型》课程教学资源(PPT课件讲稿)第八章 离散模型.ppt
- 标准差与标准差系数.ppt
- 闽江学院:正交变换与正交矩阵(戴立辉、林大华、林孔容).ppt
- 《微积分》课程教学资源(PPT课件讲稿)无穷大量与无穷小量.ppt
- 西华大学:《高等数学》课程教学资源(PPT课件讲稿)多元函数的极值问题的提出.ppt
- 《高等数学》课程电子教案(PPT课件讲稿)多元函数微分学(多元函数的极值).ppt
- 《高等数学》课程PPT教学课件:第四章 不定积分(习题课).ppt
- 欧拉积分(PPT课件讲稿)Euler.ppt
- 电子科技大学:实变函数(PPT讲稿)直线上的点集(数学科学学院:朱培勇).ppt