Welcome![Sign In][Sign Up]
Location:
Search - statements matlab

Search list

[OtherINTRODUCTION TO MATLAB FOR

Description: 1 Tutorial lessons 1 1 1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 Basic features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3 A minimum MATLAB session . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3.1 Starting MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3.2 Using MATLAB as a calculator . . . . . . . . . . . . . . . . . . . . . 4 1.3.3 Quitting MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.4 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.4.1 Creating MATLAB variables . . . . . . . . . . . . . . . . . . . . . . . 5 1.4.2 Overwriting variable . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.4.3 Error messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.4.4 Making corrections . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.4.5 Controlling the hierarchy of operations or precedence . . . . . . . . . 6 1.4.6 Controlling the appearance of °oating point number . . . . . . . . . . 8 1.4.7 Managing the workspace . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.4.8 Keeping track of your work session . . . . . . . . . . . . . . . . . . . 9 1.4.9 Entering multiple statements per line . . . . . . . . . . . . . . . . . . 9 1.4.10 Miscellaneous commands . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.4.11 Getting help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.5 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2 Tutorial lessons 2 12 2.1 Mathematical functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.1.1 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.2 Basic plotting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2.1 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2.2 Creating simple plots . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2.3 Adding titles, axis labels, and annotations . . . . . . . . . . . . . . . 15 2.2.4 Multiple data sets in one plot . . . . . . . . . . . . . . . . . . . . . . 16 2.2.5 Specifying line styles and colors . . . . . . . . . . . . . . . . . . . . . 17 2.3 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.4 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.5 Matrix generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.5.1 Entering a vector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.5.2 Entering a matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2.5.3 Matrix indexing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.5.4 Colon operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.5.5 Linear spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.5.6 Colon operator in a matrix . . . . . . . . . . . . . . . . . . . . . . . . 22 2.5.7 Creating a sub-matrix . . . . . . . . . . . . . . . . . . . . . . . . . . 23 2.5.8 Deleting row or column . . . . . . . . . . . . . . . . . . . . . . . . . . 25 2.5.9 Dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 2.5.10 Continuation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 2.5.11 Transposing a matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 2.5.12 Concatenating matrices . . . . . . . . . . . . . . . . . . . . . . . . . . 26 2.5.13 Matrix generators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 2.5.14 Special matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 2.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3 Array operations and Linear equations 30 3.1 Array operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.1.1 Matrix arithmetic operations . . . . . . . . . . . . . . . . . . . . . . . 30 3.1.2 Array arithmetic operations . . . . . . . . . . . . . . . . . . . . . . . 30 3.2 Solving linear equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 3.2.1 Matrix inverse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 3.2.2 Matrix functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 3.3 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 4 Introduction to programming in MATLAB 35 4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 4.2 M-File Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 4.2.1 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 4.2.2 Script side-eRects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 4.3 M-File functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 4.3.1 Anatomy of a M-File function . . . . . . . . . . . . . . . . . . . . . . 38 4.3.2 Input and output arguments . . . . . . . . . . . . . . . . . . . . . . . 40 4.4 Input to a script ¯le . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 4.5 Output commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 4.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 5 Control °ow and operators 43 5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 5.2 Control °ow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 5.2.1 The ``if...end'' structure . . . . . . . . . . . . . . . . . . . . . . . 43 5.2.2 Relational and logical operators . . . . . . . . . . . . . . . . . . . . . 45 5.2.3 The ``for...end'' loop . . . . . . . . . . . . . . . . . . . . . . . . . 45 5.2.4 The ``while...end'' loop . . . . . . . . . . . . . . . . . . . . . . . 46 5.2.5 Other °ow structures . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 5.2.6 Operator precedence . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 5.3 Saving output to a ¯le . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 5.4 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 6 Debugging M-¯les 49 6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 6.2 Debugging process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 6.2.1 Preparing for debugging . . . . . . . . . . . . . . . . . . . . . . . . . 50 6.2.2 Setting breakpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 6.2.3 Running with breakpoints . . . . . . . . . . . . . . . . . . . . . . . . 50 6.2.4 Examining values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 6.2.5 Correcting and ending debugging . . . . . . . . . . . . . . . . . . . . 51 6.2.6 Ending debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 6.2.7 Correcting an M-¯le . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Platform: | Size: 258288 | Author: taffy320 | Hits:

[matlabmat-bp

Description: 用BP实现函数逼近 Matlab有如下特点: 1.编程效率高 例如:普通的矩阵计算用一般的高级语言,如C,Pascal等,需要十几至几十行语句,用matlab, 至多几行。 2.用户使用方便; 3.语句简单,内涵丰富; 4.高效方便的矩阵和数值计算; 5.方便的绘图功能,等等。 -BP realize function approximation using Matlab has the following characteristics: 1. Programming efficiency such as: the general matrix calculated using an ordinary high-level languages such as C, Pascal, etc., need more than a dozen to a few line statements, using matlab, up to a few lines. 2. The user easy to use 3. Statement is simple, rich 4. Efficient and convenient matrix and numerical calculation 5. Convenient mapping functionality, and so on.
Platform: | Size: 1024 | Author: | Hits:

[MPIMATLAB

Description: 卷积运算:取x(t)和h(t)的长度为nx,nh。平移量n=nh+nx-1,利用for和if语句实现倒序求和运算。外循环用一个for语句实现平移,通过在求和时取数组元素的顺序实现倒序求和-Convolution operation: take x (t) and h (t) of length nx, nh. Translational volume n = nh+ Nx-1, use for and if statements to achieve reverse summation operator. Outside the circle with a for statement to achieve translation, when taken in sum array elements to achieve reverse the order of summation
Platform: | Size: 1024 | Author: 1 | Hits:

[Special Effectsstatmoments

Description: 出自岗厦雷斯的数字图像处理,用于纹理特征提取的获取数据-From Gangxia juarez digital image processing, feature extraction for texture access to data
Platform: | Size: 1024 | Author: 肖新华 | Hits:

[matlabmatlab

Description: 控制流语句if-else-end,并且用学生成绩举例,创建Hilbert矩阵,n阶魔方矩阵,编写一个M函数文件-Control-flow statements if-else-end, and with student achievement, for example, create a Hilbert matrix, n-order magic square matrix, the preparation of an M function file
Platform: | Size: 3072 | Author: 王斌斌 | Hits:

[Special EffectsDigital_recognition

Description: 这是一个自编的应用边缘提取和傅立叶描述子来进行数字的表述和识别-This is a self-application of edge detection and Fourier descriptors for the number of statements and identification
Platform: | Size: 407552 | Author: 爱子 | Hits:

[Picture ViewerGetBMPPic

Description: MATLAB和VC++混合编程实现BMP图像的读取显示,VC++为主要平台,中间调用MATLAB引擎,执行MATLAB语句,将读取的BMP数据显示出来。-MATLAB and VC++ Matlab read BMP images show, VC++ As the main platform, called intermediate MATLAB engine, the implementation of MATLAB statements will read BMP data displayed.
Platform: | Size: 5089280 | Author: yinwk | Hits:

[Speech/Voice recognition/combinelpcc

Description: 本源码为语音识别中lpcc(线性预测倒谱系数)的计算方法。经试验,可用。为方便大家理解,关键语句和函数后面都加上了注释。-The source code for speech recognition in lpcc (Linear Prediction Cepstrum Coefficient) is calculated. After testing, can be used. To facilitate the understanding of everyone, the key behind the statements and functions are added to the Notes.
Platform: | Size: 1024 | Author: 魏玮 | Hits:

[matlabdotdetection

Description: 对一幅具有颗粒形状的图像进行了处理和分析。能够计算出图像中的颗粒数和颗粒的相关特征,能够较为快速有效地计算出颗粒的特征信息。附有详细算法说明和报告-Particle shape of an image has been processed and analyzed. Be able to calculate the number of particles in the image and the relevant characteristics of particles that can be more quickly and efficiently calculate the characteristics of particles of information. Statements and reports with a detailed algorithm
Platform: | Size: 28672 | Author: sy | Hits:

[Special Effectsmatlabfusetool

Description: 图像识别概述统计模式的识别方法、结构语句的识别方法、模糊集识别法、神经网络识别法等-Image recognition methods outlined in the statistical model identification, structure identification method statements, fuzzy set identification method, neural network identification method, etc.
Platform: | Size: 17408 | Author: 阿毛 | Hits:

[matlabzwmx

Description: 1、用for和if语句求出供求函数以及稳定时的产量和价格。 2、用多重for循环语句和plot语句画出蛛网模型。 3、制作动画语句。 -1, with for and if statements when you find a stable supply and demand functions and production and prices. 2, with multiple plot statement for loop and draw the cobweb model. 3, animation statements.
Platform: | Size: 1024 | Author: linjun | Hits:

[matlabMATLAB

Description: MATLAB讲座:介面介绍,基础命令,常用数学函数,常用语句等-MATLAB Lecture: Interface description, basic commands, common mathematical functions, common statements, etc.
Platform: | Size: 37888 | Author: 蔡香行 | Hits:

[OtherMATLABProgrammingforEngineers

Description: Stephen J.Chapman《Matlab编程(中文版)》 Stephen, Matlab编程 本文为Stephen J.Chapman《MATLAB编程(第二版)》英文影印版的中文译本,这本书对初学者很好的入门教材。 第一章 Matlab入门 第二章 Matlab基础 第三章 分支语句和编程设计 第四章 循环结构 第五章 自定义函数 第六章 复数数据、字符串和附加画图类 第七章 稀疏矩阵、单元阵列结构 第八章 输入输出函数 第九章 句柄图形 第十章 用户图形界面 -Stephen J. Chapman " Matlab programming (English Version)" Stephen, Matlab programming paper for the Stephen J. Chapman " MATLAB Programming (Second Edition)" English copy version of the Chinese translation of the book a good primer for beginners. Chapter I Introduction Chapter II Matlab Matlab based on Chapter III branch statements and Programming Chapter IV Chapter V loop structure defined functions Chapter VI complex data, strings and additional drawing classes Chapter VII of the sparse matrix, cell array structure of the eighth input and output functions of Chapter IX Chapter X Chapter Handle Graphics GUI
Platform: | Size: 13134848 | Author: liuxi | Hits:

[DocumentsSignals-and-Systems-in-matlab-program

Description: 这一篇文献,主要讲信号与系统中的matlab程序,对用到的matlab语句和函数都有详细的说明,还有常用列表-This is a literature, the main stress signals and systems in the matlab program, matlab on the used statements and functions are detailed instructions, as well as a list of commonly used
Platform: | Size: 23552 | Author: 予爽 | Hits:

[matlabAffine

Description: - MATLAB: Matrix Laboratory (a) Operation modes - MATLAB may be executed in terpreter, compiler, or background mode 􀁹 Interpreter mode * Type commands (statements) in the command window # A statement with semicolon at end: do not display result # A statement without semicolon: display result # Statements with commas: connect statements and display results # A statement of a single variable: just display the value # Percentage ( ): comments # Each line is a single statement or connected statements-- MATLAB: Matrix Laboratory (a) Operation modes - MATLAB may be executed in interpreter, compiler, or background mode 􀁹 Interpreter mode * Type commands (statements) in the command window # A statement with semicolon at end: do not display result # A statement without semicolon: display result # Statements with commas: connect statements and display results # A statement of a single variable: just display the value # Percentage ( ): comments # Each line is a single statement or connected statements
Platform: | Size: 435200 | Author: Erol | Hits:

[matlabMatlab-graphics-processing-functions

Description: MATLAB图像处理中用到的命令语句和函数语句还包括一些编程举例。-MATLAB image processing functions used in the command statement and statements also include some programming examples.
Platform: | Size: 431104 | Author: xubin | Hits:

[Special Effects123

Description: 分形图像压缩源代码,MATLAB编程实现,附相关解释语句,可直接运行-Fractal image compression the source code, and the MATLAB programs, with the interpretation, and can be run directly statements
Platform: | Size: 261120 | Author: 青山小子 | Hits:

[OtherMATLAB-while-yuju

Description: 主要介绍了matlab中循环语句以及选择语句的使用,同时给出了许多例子进行编程,说明语句的使用-Introduces matlab loop statements, and use select statement gives many examples of programming, and illustrate the use of statements
Platform: | Size: 5121024 | Author: zhiwenshu | Hits:

[Software EngineeringMATLAB

Description: -使用switch结构设计MATLAB程序,通过输入英文星期单词,将其转换成相应的中文,例如输入“Sunday”,输出“星期天”。注意输入单词的大小写。和5. 分别使用for、while语句,和sum函数,求 -- Use MATLAB program switch design, week by entering the English word, which was converted into the corresponding Chinese, for example, enter " Sunday" , output " Sunday." Note that the input word sensitive. And 5. Were using for, while statements, and the sum function, seeking
Platform: | Size: 1024 | Author: 李清雅请 | Hits:

[matlabmatlab常用程序

Description: matlab常用小程序,常用语句,实现方法(Matlab commonly used small procedures, commonly used statements, methods)
Platform: | Size: 22528 | Author: 大地苏大大 | Hits:
« 12 3 4 »

CodeBus www.codebus.net