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

Search list

[matlabMATLAB图像处理源程序

Description:

程序代码说明

P0201:MATLAB赋值

P0202:MATLAB中的for循环

P0203:MATLAB中的for循环和if条件

P0205:MATLAB图像处理的基本操作

P0206:MATLAB高级图像处理操作

P0207:根据RGB图像创建一幅灰度图像

P0208:二值图像的取反操作

P0209:用imshow函数显示图像

P0210:在同一个窗口内显示两幅图像

2.rar (15.23k)

程序代码说明

P0301:数字图像矩阵数据的显示及其傅立叶变换

P0302:二维离散余弦变换的图像压缩

P0303:采用灰度变换的方法增强图像的对比度

P0304:直方图均匀化

P0305:模拟图像受高斯白噪声和椒盐噪声的影响

P0306:采用二维中值滤波函数medfilt2对受椒盐噪声干扰的图像滤波

P0307:采用MATLAB中的函数filter2对受噪声干扰的图像进行均值滤波

P0308:图像的自适应魏纳滤波

P0309:运用5种不同的梯度增强法进行图像锐化

P0310:图像的高通滤波和掩模处理

P0311:利用巴特沃斯(Butterworth)低通滤波器对受噪声干扰的图像进行平滑处理

P0312:利用巴特沃斯(Butterworth)高通滤波器对图像进行锐化处理

程序代码说明

P0401:用Prewitt算子检测图像的边缘

P0402:用不同σ值的LoG算子检测图像的边缘

P0403:用Canny算子检测图像的边缘

P0404:图像的阈值分割

P0405:用水线阈值法分割图像

P0406:对矩阵进行四叉树分解

P0407:将图像分为文字和非文字的两个类别

P0408:形态学梯度检测二值图像的边缘

P0409:形态学实例——从PCB图像中删除所有电流线,仅保留芯片对象

程序代码说明

P0502:计算图像中的欧拉数

程序代码说明

P0610:神经网络的实例


Platform: | Size: 87980 | Author: wilsonwong | Hits:

[2D GraphicCubicmap--bifurcation-matlab

Description: This is bifurcation phase of Cubicmap using matlab. If you want to study the nonlinear dynamics, it is a good example for beginner. It will be helpful for you to simulate the bifurcation phenonmenons in nonlinear discrete dynamical systems.
Platform: | Size: 20350 | Author: liguoychina@gmail.com | Hits:

[OtherAn Introduction to Matlab

Description: 1 MATLAB 2 2 Starting Up 2 2.1 Windows Systems . . . . . . . . . . 2 2.2 Unix Systems . . . . . . . . . . . . . 2 2.3 Command Line Help . . . . . . . . . 2 2.4 Demos . . . . . . . . . . . . . . . . . 3 3 Matlab as a Calculator 3 4 Numbers & Formats 3 5 Variables 3 5.1 Variable Names . . . . . . . . . . . . 3 6 Suppressing output 4 7 Built{In Functions 4 7.1 Trigonometric Functions . . . . . . . 4 7.2 Other Elementary Functions . . . . . 4 8 Vectors 4 8.1 The Colon Notation . . . . . . . . . 5 8.2 Extracting Bits of a Vector . . . . . 5 8.3 Column Vectors . . . . . . . . . . . . 5 8.4 Transposing . . . . . . . . . . . . . . 5 9 Keeping a record 6 10 Plotting Elementary Functions 6 10.1 Plotting|Titles & Labels . . . . . . 7 10.2 Grids . . . . . . . . . . . . . . . . . . 7 10.3 Line Styles & Colours . . . . . . . . 7 10.4 Multi{plots . . . . . . . . . . . . . . 7 10.5 Hold . . . . . . . . . . . . . . . . . . 7 10.6 Hard Copy . . . . . . . . . . . . . . 8 10.7 Subplot . . . . . . . . . . . . . . . . 8 10.8 Zooming . . . . . . . . . . . . . . . . 8 10.9 Formatted text on Plots . . . . . . . 8 10.10Controlling Axes . . . . . . . . . . . 9 11 Keyboard Accelerators 9 12 Copying to and from Word and other applications 10 12.1 Window Systems . . . . . . . . . . . 10 12.2 Unix Systems . . . . . . . . . . . . . 10 13 Script Files 10 14 Products, Division & Powers of Vectors 11 14.1 Scalar Product (*) . . . . . . . . . . 11 14.2 Dot Product (.*) . . . . . . . . . . . 11 14.3 Dot Division of Arrays (./) . . . . . 12 14.4 Dot Power of Arrays (.^) . . . . . . 12 15 Examples in Plotting 13 16 Matrices|Two{Dimensional Arrays 13 16.1 Size of a matrix . . . . . . . . . . . . 14 16.2 Transpose of a matrix . . . . . . . . 14 16.3 Special Matrices . . . . . . . . . . . 14 16.4 The Identity Matrix . . . . . . . . . 14 16.5 Diagonal Matrices . . . . . . . . . . 15 16.6 Building Matrices . . . . . . . . . . . 15 16.7 Tabulating Functions . . . . . . . . . 15 16.8 Extracting Bits of Matrices . . . . . 16 16.9 Dot product of matrices (.*) . . . . 16 16.10Matrix{vector products . . . . . . . 16 16.11Matrix{Matrix Products . . . . . . . 17 16.12Sparse Matrices . . . . . . . . . . . . 17 17 Systems of Linear Equations 18 17.1 Overdetermined system of linear equations . . . . . . . . . . . . . . . . . . 18 18 Characters, Strings and Text 20 19 Loops 20 20 Logicals 21 20.1 While Loops . . . . . . . . . . . . . . 22 20.2 if...then...else...end . . . . . . 23 21 Function m{ les 23 21.1 Examples of functions . . . . . . . . 24 22 Further Built{in Functions 25 22.1 Rounding Numbers . . . . . . . . . . 25 22.2 The sum Function . . . . . . . . . . . 25 22.3 max & min . . . . . . . . . . . . . . . 26 22.4 Random Numbers . . . . . . . . . . 26 22.5 find for vectors . . . . . . . . . . . . 27 22.6 find for matrices . . . . . . . . . . . 27 23 Plotting Surfaces 27 24 Timing 28 25 On{line Documentation 29 26 Reading and Writing Data Files 29 26.1 Formatted Files . . . . . . . . . . . . 30 26.2 Unformatted Files . . . . . . . . . . 30 27 Graphic User Interfaces 31 28 Command Summary 32
Platform: | Size: 877346 | Author: taffy320 | Hits:

[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:

[matlabVC调用matlab中定义的.m文件中的函数的实例

Description: 如何在VC中利用matlab的资源呢? 在这里我简要的以一个简单的例子来说明一下如果在VC中调用matlab中定义的.m文件。-how to use Matlab resources? Here, I briefly with a simple example to illustrate what if the VC called defined in Matlab. M documents.
Platform: | Size: 40960 | Author: 葛强 | Hits:

[Documents实现c#调用matlab函数

Description: 对于精通C#的同志来说,仿真的时候程序非常复杂,如果能直接调用MATLAB中已有的函数就好了,本文就实现c#调用matlab函数 -proficient in C# for the comrades, simulation of very complex procedures, if they can be called directly MATLAB has a function that will be the realization of this paper c# function call Matlab
Platform: | Size: 4096 | Author: 张庚 | Hits:

[matlabf_ifft

Description: OFDM中的关于快速傅立叶变换的个人设计的MATLAB的算法,比较经典的 !-OFDM on the Fast Fourier Transform personal design MATLAB algorithm, more classic!
Platform: | Size: 20480 | Author: yeyue | Hits:

[matlabmatlab-code

Description: matlab解线性方程组的源代码 function x=nagauss2(a,b,flag) % 用途:选列主元Gauss消去法解线性方程组ax=b % 格式:x=nagauss2(a,b,flag) a为系数矩阵,b为右端列向量,flag若为0,则显示中间过程 -Matlab solution of linear equations source code function nagauss2 x = (a , b, flag)% purposes : a selection PCA Gauss elimination method for solving linear equations ax = b% Format : nagauss2 x = (a, b, flag) for a coefficient matrix, b subguadratic column vector, if the flag is 0, then showed intermediate process
Platform: | Size: 3072 | Author: 郑超 | Hits:

[Speech/Voice recognition/combineFormantTracker(matlab)

Description: 检测语音信号的共振峰 % gender = gender_detector(X,Fs) % % This function will use a pitch detection algorithm to decide if the speaker is MALE(0) or FEMALE (1). % It is designed to work with short speech samples (up to or greater than 50 ms). The function returns a % 0 if X contains male speech and a 1 if it contains female speech. -the resonance peak gender_detector% gender = (X, Fs)%% This function will use a detection a pitch lgorithm to decide if the speaker is abbreviation (0) or F EMALE (1). % It is designed to work with short spe ech samples (up to or greater than 50 ms). The fun ction returns a 0% if X contains a male speech and if it contains a female speech.
Platform: | Size: 16384 | Author: lixiao | Hits:

[matlabB.P.Lathi-Matlab

Description: matlab例程MATLAB 6.x版的内建数据类型(Built-in data type)就有5种以上,此外还有许多其他专门设计的类(Class),如符号类、内联函数类、控制工具包中的线性时不变模型类、神经网络类等。就程序设计而言,MATLAB 6.x版采用了面向对象编程技术。数据和编程的改变使用户能更简捷而自然地解决复杂的计算问题(如符号计算问题、多变量控制系统问题、神经网络问题)。本章内容根据MATLAB6.5编写,但绝大部分内容适用于其他MATLAB6.x版本。-Matlab routines MATLAB 6.x version of the built-in data types (Built-in da ta type) have more than five, in addition to many other specialized design category (Class). If symbol, which together function category, tool kits control the linear time-invariant model type, neural network type. On the design process, using MATLAB 6.x version of the object-oriented programming technology. Programming and data changes so that users can more simple and natural solution to the complex calculation (as symbolic computation, multivariable control systems, neural networks). According to the contents of this chapter MATLAB6.5 preparation, But most of what applies to other MATLAB6.x version.
Platform: | Size: 17408 | Author: fan | Hits:

[matlabmatlab-lllx

Description: 用Matlab实现的一个卫星自动导航模拟系统,包括GUI设计、模型设计与实现、三维动态仿真等功能,其中运用了两个自动导航的模型,程序里有对模型的简要说明,如果有需要详细说明的,可以和我联系。-using Matlab a simulated automatic navigation satellite systems, including GUI design, Model Design and Implementation, three-dimensional dynamic simulation, and other functions, using two automatic navigation model, there are procedures to model a brief description, if a need for detailed descriptions, and contact me.
Platform: | Size: 5120 | Author: hubisong | Hits:

[Software Engineeringmatlab-vc-matlab

Description: 几篇matlab和vc混合编程的文章合集,如有使用混合编程的,可以作为参考-few Matlab and vc mixed programming Collection of articles, if the use of the mixed programming, it can serve as a reference
Platform: | Size: 1240064 | 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:

[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:

[matlabmatlab

Description: 黄金分割法求极小值 功能:用黄金分割法求f(x)在区间[a,b]上的近似极小值。当且仅当f(x)在[a,b]上为单峰时次方法适用 -Golden section method for the minimum functions: golden section method used for f (x) in the interval [a, b] on the approximate minimum. If and only if f (x) in [a, b] for the single-peak method can be applied at times
Platform: | Size: 1024 | Author: songzhaozhe | Hits:

[DSP programMatlab

Description: 数字中频信号软件模拟器仿真 论文对Gps信号的理解有帮助-Digital IF signal simulator software simulation papers on the understanding Gps signal help
Platform: | Size: 240640 | Author: 刘旭东 | Hits:

[matlabmatlab-CA

Description: matlab的元胞自动机程序的源代码,胞自动机程序状态演化规则 ①如果一个元胞的状态是0,则当它有状态为1的邻元时,该元胞的状态以概率a×b变为1,并且当它的临域中状态为1的邻元越多,其状态转变为1的概率越大 ②如果一个元胞的状态是1,则该元胞的状态保持不变。初始传播者位于中心单元格25×25处 取50×50的网格,临域为Moore型,经过50个仿真时钟,知识传播结果的模拟图 -matlab Cellular Automata procedure source code, cellular automata evolution rules of procedure state ① If a cell' s state is 0, then when it has a status of one element of the neighborhood, the cellular state to the probability of a × b into one, and when it' s Pro domain status is one more element of the neighborhood, its status into a greater probability of 1 ② If a cell' s state is 1, the cellular status remains unchanged. Initial spreaders center cell 25 × 25 obtain 50 × 50 grid, the Pro domain for the Moore-type, after 50 simulation clock, the dissemination of knowledge of the simulation results of Figure
Platform: | Size: 1024 | Author: 袁逸扬 | Hits:

[matlabMatlab

Description: 很好的OFDM的基于MATLAB的仿真程序包,且包含了最终结果图.-montecarlo type montecarlo in the command window and wait for a long time.. _simulation of the complete OFDM system. _use of a very large file in order to get probabilities. _loop over different value of the noise. _compute the SNR for each value of the noise. _provide the SNR/BER plot. if you are in a rush : simulation_system !! go into the right folder and type simulation_system in the command window. _then type the value of the noise power (range = [-20,10]) _the function provides the channel estimation, the bit allocation, and a plot illustrating the errors. _this is a fast function (less pilot, no synchronization, small file).
Platform: | Size: 96256 | Author: 田静 | Hits:

[matlabTheDigitalFilterDesignInAKindOfDigitalReceiver

Description: 本文利用MATLAB编写的一种中频数字接收机的程序-In this paper, the preparation of a MATLAB-IF digital receiver procedures
Platform: | Size: 6144 | Author: liuyuanyuan | Hits:

[OtherMATLAB-if...elseif...elseif...else...pdf

Description: Learn matlab if else if else if else statement with example
Platform: | Size: 54272 | Author: RAJEEV RANJAN | Hits:
« 12 3 4 5 6 7 8 9 10 ... 50 »

CodeBus www.codebus.net