纯文本”帮助 【例1101-1】在指令窗中运行help的示例 help help HELP On-line help, display text at command line HELP, by itself, lists all primary help topics. Each primary topic corresponds to a directory name on the MATLABPATH (2) HELP topics matlab\gener General purpose commands matlab\ops Operators and special characters matlab\lang Programming language constructs matlab\elma Elementary matrices and matrix manipulation matlab\elfun Elementary math functions For more help on directory/topic, type "help topic (3) help elat Elementary matrices and matrix manipulation Elementary matrices eros Zeros array nes array Identity mat help eye EYE Identity mat EYE (N) is the N-by-N identity matrix EYE(M, N) or EYE ([M, N]) is an M-by-N matrix with lson the diagonal and zeros elsewhere EYE (SIZE(A)) is the same size as A See also ONES, ZEROS, RAND, RANDN 【例1.101-2】在指令窗中,运用 lookfor找H1l行(M函数文件的第一注释行) 1。。 kfor fourier FFT Discrete Fourier trans form FFT2 Two-dimensional discrete Fourier Trans form FFTN N-dimensional discrete Fourier Trans form IFFT Inverse discrete Fourier trans form IFFT2 Two-dimensional inverse discrete Fourier trans fo IFFTN N-dimensional inverse discrete Fourier transform Y XFOURIER Graphics demo of Fourier series expansion Mot563 FET Discrete Fourier trans form MoT563 IFFT Inverse discrete Fourier transform MoT566 FET Discrete Fourier transform MoT566 IFFT Inverse discrete fourier transform DeTMTX Discrete Fourier trans form matriz INSTDFFT Inverse non-standard 1-d fast Fourier transform NSTDFFT Non-standard 1-d fast Fourier trans form FFT Quantized Fast Fourier Trans form FOURIER Fourier integral trans form IFOURIER Inverse Fourier integral transform
一 “纯文本”帮助 【例 1.10.1-1】在指令窗中运行 help 的示例。 (1) help help HELP On-line help, display text at command line. HELP, by itself, lists all primary help topics. Each primary topic corresponds to a directory name on the MATLABPATH. ...... ...... ...... (2) help HELP topics: matlab\general - General purpose commands. matlab\ops - Operators and special characters. matlab\lang - Programming language constructs. matlab\elmat - Elementary matrices and matrix manipulation. matlab\elfun - Elementary math functions. ...... ...... ...... For more help on directory/topic, type "help topic". (3) help elmat Elementary matrices and matrix manipulation. Elementary matrices. zeros - Zeros array. ones - Ones array. eye - Identity matrix. ...... ...... ...... (4) help eye EYE Identity matrix. EYE(N) is the N-by-N identity matrix. EYE(M,N) or EYE([M,N]) is an M-by-N matrix with 1's on the diagonal and zeros elsewhere. EYE(SIZE(A)) is the same size as A. See also ONES, ZEROS, RAND, RANDN. 【例 1.10.1-2】在指令窗中,运用 lookfor 找 H1 行(M 函数文件的第一注释行) lookfor fourier FFT Discrete Fourier transform. FFT2 Two-dimensional discrete Fourier Transform. FFTN N-dimensional discrete Fourier Transform. IFFT Inverse discrete Fourier transform. IFFT2 Two-dimensional inverse discrete Fourier transform. IFFTN N-dimensional inverse discrete Fourier transform. XFOURIER Graphics demo of Fourier series expansion. MOT563_FFT Discrete Fourier transform. MOT563_IFFT Inverse discrete Fourier transform. MOT566_FFT Discrete Fourier transform. MOT566_IFFT Inverse discrete Fourier transform. DFTMTX Discrete Fourier transform matrix. INSTDFFT Inverse non-standard 1-D fast Fourier transform. NSTDFFT Non-standard 1-D fast Fourier transform. FFT Quantized Fast Fourier Transform. FOURIER Fourier integral transform. IFOURIER Inverse Fourier integral transform
导航/浏览器交互界面”帮助 三PDF帮助 四其他帮助 110.2 Help navigator/ Browser帮助导航/浏览器简介 hElp 回冈 File Edit iew Go Web window Help Help Navigator ←→6母 Find in page: oduct fiter: O All O Selected Select Getting Started: Introduction Add to Favorites Contents Index Search Demos B Installation Getting Started D Getting Started Introduction What Is MATLAB? MATLAB Docum +Manipulating matrices s Provides an overview Programming with MFy MATLAB of the main features of MATLAB Contents帮助文件目录窗 【例1.102-1】通过鼠标操作获得如图1.10-1所示的界面。 二 Index帮助索引窗 例1.10.2-2】利用Idex搜索 fourier这条术语。(注意把本例与例1.10.1-2、例1.10.2-3比
二 “导航/浏览器交互界面”帮助 三 PDF 帮助 四 其他帮助 1.10.2 Help Navigator/Browser 帮助导航/浏览器简介 图 1.10-1 一 Contents 帮助文件目录窗 【例 1.10.2-1】通过鼠标操作获得如图 1.10-1 所示的界面。 二 Index 帮助索引窗 【例 1.10.2-2】利用 Idex 搜索 fourier 这条术语。(注意把本例与例 1.10.1-2、例 1.10.2-3 比 较。)
Product filter: O All O SelectedSelect Contents Index Search Demos Favorites Search index for Symbolic Math Toolbox MATLAB· Mathematics basic function Wavelet Toolbox concepts MATLAB- Mathematics Wavelet Toolbox short-time analysis(s. Wavelet Toolbox 图1.10-2 三 Search搜索窗 【例1.10.2-3】利用“ Search”窗搜索词汇 fourier。(注意把本例与例1.10.1-2、例1.10.2-2 比较 Product filter:O All O SelectedSelect Contents Index Search Demos Favorites h type: Full Text Search for: fourier Exs mpl: prag AND quiGG NOT exporting MATLAB Directory Structure MATLAB Installation MATLAB Data Analysis and Fourier Transforms Functions-By Cate Fourier Analysis and the Fast Fourier Tra... Data Analysis and MATLAB Functions 195 pages contain the word fourier 四 Favorites书签窗
图 1.10-2 三 Search 搜索窗 【例 1.10.2-3】利用“Search”窗搜索词汇 fourier。(注意把本例与例 1.10.1-2、例 1.10.2-2 比较。) 图 1.10-3 四 Favorites 书签窗
第二章数值数组及其运算 数值数组( Numeric Array)和数组运算( Array Operations)始终是 MATLAB的核心内 容。自 MATLAB5x版起,由于其“面向对象”的特征,这种数值数组(以下简称为数组) 成为了 MATALB最重要的一种内建数据类型( Built-in Data Type),而数组运算就是定义 在这种数据结构上的方法( Method) 本章系统阐述:一、二维数值数组的创建、寻访;数组运算和矩阵运算的区别:实现数 组运算的基本函数;多项式的表达、创建和操作;常用标准数组生成函数和数组构作技法; 高维数组的创建、寻访和操作;非数NaN、“空”数组概念和应用;关系和逻辑操作 顺便指出:(1)本章所涉内容和方法,不仅使用于数值数组,而且也将部分地延伸使 用于在其他数据结构中。(2) MATLAB5x和6x版在本章内容上的差异极微。(3) MATLAB6.5版新增的两种逻辑操作,在第2.13.2节给予介绍。 21引导 【例21-1】绘制函数y=xe-在0≤x≤1时的曲线 x=0:0.1:1 plot(x, y), xlabel('x '), ylabel('y'), title('y=x*exp(-x)') Columns 1 through 7 0.2000 0.3000 0.4000 0.5000 6000 Columns 8 through 11 0.7000 0.80000.90001.0000 y- columns 1 through 7 00.09050.16370.22220.26810 Columns 8 through 11 0.3595 0.3659 0.3679 0.35 图21 22—维数组的创建和寻访 2.2.1 一维数组的创建 2.2.2 一维数组的子数组寻访和赋值 【例2.2.2-1】子数组的寻访( Address)
1 第二章 数值数组及其运算 数值数组(Numeric Array)和数组运算(Array Operations)始终是 MATLAB 的核心内 容。自 MATLAB5.x 版起,由于其“面向对象”的特征,这种数值数组(以下简称为数组) 成为了 MATALB 最重要的一种内建数据类型(Built-in Data Type),而数组运算就是定义 在这种数据结构上的方法(Method)。 本章系统阐述:一、二维数值数组的创建、寻访;数组运算和矩阵运算的区别;实现数 组运算的基本函数;多项式的表达、创建和操作;常用标准数组生成函数和数组构作技法; 高维数组的创建、寻访和操作;非数 NaN、“空”数组概念和应用;关系和逻辑操作。 顺便指出:(1)本章所涉内容和方法,不仅使用于数值数组,而且也将部分地延伸使 用于在其他数据结构中。(2)MATLAB5.x 和 6.x 版在本章内容上的差异极微。(3) MATLAB6.5 版新增的两种逻辑操作,在第 2.13.2 节给予介绍。 2.1 引导 【例 2.1-1】绘制函数 x y xe− = 在0 ≤ x ≤ 1时的曲线。 x=0:0.1:1 y=x.*exp(-x) plot(x,y),xlabel('x'),ylabel('y'),title('y=x*exp(-x)') x = Columns 1 through 7 0 0.1000 0.2000 0.3000 0.4000 0.5000 0.6000 Columns 8 through 11 0.7000 0.8000 0.9000 1.0000 y = Columns 1 through 7 0 0.0905 0.1637 0.2222 0.2681 0.3033 0.3293 Columns 8 through 11 0.3476 0.3595 0.3659 0.3679 0 0.2 0.4 0.6 0.8 1 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 x y y=x*exp(-x) 图 2.1-1 2.2 一维数组的创建和寻访 2.2.1 一维数组的创建 2.2.2 一维数组的子数组寻访和赋值 【例 2.2.2-1】子数组的寻访(Address)
rand('state, 0) x=rand(1, 5) 0.9501 0.2311 0.6068 0.8913 x(3) ans 0.6068 x([1251) ans 0.9501 0.2311 0.8913 x(1:3) 0.95010.23110.6068 x (3: end) 0.6068 0.48600.8913 (3:-1:1) ans 0.6068 0.2311 0.9501 x(find(x>0.5)) ans 95010.60680.8913 x([123443211) as Columns 1 through 7 0.95010.23110.60680.48600.48 Column 8 0.9501 【例222-2】子数组的赋值( Assign) x(3)=0 0.9501 0.2311 0.4860 0.8913 x([14])=[11 1.0000 0.2311 00000.8913 23二维数组的创建 2.3.1 直接输入法 【例2.31-1】在 MATLAB环境下,用下面三条指令创建二维数组C。 a=2.7358;b=33/79 C=[1,2*a+i*b,b*sqrt(a);sin(Pi/4),a+5*b,3.5+i] 1.0000 5.4716+0.41771 6909 0.7071 4.8244 3.5000+1.0000i
2 rand('state',0) x=rand(1,5) x = 0.9501 0.2311 0.6068 0.4860 0.8913 x(3) ans = 0.6068 x([1 2 5]) ans = 0.9501 0.2311 0.8913 x(1:3) ans = 0.9501 0.2311 0.6068 x(3:end) % ans = 0.6068 0.4860 0.8913 x(3:-1:1) % ans = 0.6068 0.2311 0.9501 x(find(x>0.5)) ans = 0.9501 0.6068 0.8913 x([1 2 3 4 4 3 2 1]) ans = Columns 1 through 7 0.9501 0.2311 0.6068 0.4860 0.4860 0.6068 0.2311 Column 8 0.9501 【例 2.2.2-2】子数组的赋值(Assign)。 x(3) = 0 x = 0.9501 0.2311 0 0.4860 0.8913 x([1 4])=[1 1] x = 1.0000 0.2311 0 1.0000 0.8913 2.3 二维数组的创建 2.3.1 直接输入法 【例 2.3.1-1】在 MATLAB 环境下,用下面三条指令创建二维数组 C。 a=2.7358; b=33/79; C=[1,2*a+i*b,b*sqrt(a);sin(pi/4),a+5*b,3.5+i] C = 1.0000 5.4716 + 0.4177i 0.6909 0.7071 4.8244 3.5000 + 1.0000i