Location:
Search - loop matlab
Search list
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:
Description: 某控制系统的开环传递函数的分析.绘制系统的闭环根轨迹,寻找系统临界稳定时的增益k,并分析其稳定性。-a control system of open-loop transfer function analysis. Rendering System is a closed-track, Find Critical stable gain k, and to analyze its stability.
Platform: |
Size: 17408 |
Author: 罗小文 |
Hits:
Description: 实现对声音信号的采集和播放功能有VC和matlab的借口程序-realization of the right voice signal acquisition and playback function of the VC and Matlab excuse procedures
Platform: |
Size: 6001664 |
Author: edf |
Hits:
Description: 几个锁相环仿真程序-通信技术-不记得哪来的啦。希望有用……。-Several phase-locked loop simulation program- communication technologies- do not remember you come from. Seek to help ... ....
Platform: |
Size: 6144 |
Author: 纪晓岚 |
Hits:
Description: Demodulating a BPSK using Costas Loop
Platform: |
Size: 69632 |
Author: cmosbjt |
Hits:
Description: pll锁相环仿真程序,经过测试,并附上仿真图,值得学习-pll phase locked loop simulation program, tested with the simulation map, it is worth learning
Platform: |
Size: 1024 |
Author: james |
Hits:
Description: 该程序实现的锁相环,运行环境为matlab,二阶的环路滤波器-The program realization of phase-locked loop, operating environment for matlab, the second-order loop filter
Platform: |
Size: 1024 |
Author: change |
Hits:
Description: 一个关于科斯塔斯环的MATLAB仿真程序,,希望有人需要哈-Costas Loop on the MATLAB simulation program, the hope that someone need to Kazakhstan
Platform: |
Size: 1024 |
Author: air |
Hits:
Description: gps延迟锁定环中对热噪声的模拟,考虑了热噪声对跟踪精度的影响,很不错的-gps delay locked loop in the thermal noise of the simulation, taking into account thermal noise on the impact of tracking accuracy, very good
Platform: |
Size: 1024 |
Author: li jian |
Hits:
Description: 对锁相环路的仿真,二阶环的仿真与分析都可以通过这个文件来到完成-Simulation of PLL, second-order loop simulation and analysis can be completed by the adoption of the document came
Platform: |
Size: 1024 |
Author: 夺取 |
Hits:
Description: 伺服直流电机仿真图,包括直流双闭环仿真图,结果可靠-DC motor servo simulation map, including the double-loop simulation of DC plans, resulting in reliable
Platform: |
Size: 7168 |
Author: 王林林 |
Hits:
Description: 在分析无刷直流电机(BLDC)数学模型的基础上,提出了一种无刷直流电机控制系统仿
真建模的新方法。在Matlab/Simulink环境下,把独立的功能模块和S函数相结合,构建了无刷直流
电机系统的仿真模型。系统采用双闭环控制:速度环采用离散PID控制,根据滞环电流跟踪型PWM
逆变器原理实现电流控制。仿真和试验结果与理论分析一致,验证了该方法的合理性和有效性。
此方法也适用于验证其他控制算法的合理性,为实际电机控制系统的设计和调试提供了新的思路。
-Based on the mathematical model of the Brushless DC motor(BLDC),a novel method for modeling and
simulation of BLDC control system was proposed.In Matlab/Simulink,by the combination of the isolated functional blocks
and S-functions,the model of BLDC could be established.In the double loop of control system,a discrete PID controller was
adopted in the speed loop and a current controller was completed in the current loop on the principle of hysteresis current
track PWM inverter.The reasonability and validity were testified by the coincidence of the simulation and experimentation
results and theory analysis.This novel method is also suitable for verifying the reasonability of other control algorithms and
offers a new thinking for designing and debugging actual motors.
Platform: |
Size: 587776 |
Author: zhanghejun |
Hits:
Description: 二阶锁相环 m 文件,运行有图,应用广泛-Second-order phase-locked loop m documents, there are plans to run a wide range
Platform: |
Size: 21504 |
Author: rankin2 |
Hits:
Description: 锁相环的MATLAB SIMULINK编程,可以供研究锁相环的人员使用-MATLAB SIMULINK programming the phase-locked loop, you can study for the use of Phase-Locked Loop
Platform: |
Size: 10240 |
Author: 赵彪 |
Hits:
Description: 完整的锁相环matlab代码实现,其中包括高斯噪声干扰,频差,相差,给出最后频率及相位收敛结果图。重要的是代码中有本人详细注释,易于理解-Complete phase-locked loop matlab code, including the Gaussian noise interference, frequency difference, a difference, given the final results of the frequency and phase diagram convergence. Important that the code in detail in my notes, easy to understand
Platform: |
Size: 1024 |
Author: luoshuwen |
Hits:
Description: 包含了Floyd算法、dijkstra算法、贪婪算法、遗传算法、搜索算法、蚁群算法、哈密顿环路的matlab源程序及相关说明。-Floyd algorithm is included, dijkstra algorithm, greedy algorithm, genetic algorithm, search algorithm, ant colony algorithm, Hamiltonian loop matlab source code and instructions.
Platform: |
Size: 219136 |
Author: 陈壁坚 |
Hits:
Description: Loop 曲面细分的matlab完整源程序,包括算法的实现和多个测试用例.是曲面细分入门的罕见好资料.-Loop subdivision surfaces of matlab full source, including the algorithm implementation and multiple test cases. Is a rare good surface segmentation data entry.
Platform: |
Size: 208896 |
Author: loopmatlab2009 |
Hits:
Description: xPC Target 工具箱使你可以在 Simulink 的框图中加入 I/O 方块图,并用 RTW 产生代码,最后下载到另一个运行 xPC Target 实时内核的 PC 机上。对于控制和 DSP 系统来说 xPC Target 是理想的快速原型和硬件在回路测试工具,它可以使你在一台标准的 PC 机上运行实时模型。如果附加 xPC Target 嵌入模块选项,你可以把你的实时嵌入式系统放入到一台微机上,应用于生产、数据采集、标定和测试应用程序等过程中。
-xPC Target toolbox allows you to add in the Simulink block diagram of the I/O block diagram, and use RTW generated code, and finally downloaded to another running xPC Target real-time kernel of the PC machine. For the control and DSP systems is ideal for the xPC Target rapid prototyping and hardware in the loop testing tool that allows you to a standard PC, running real-time model. If the additional xPC Target Embedded Module option, you can put your real-time embedded systems to a microcomputer applied to the production, data acquisition, calibration and test applications such as process.
Platform: |
Size: 9875456 |
Author: joey |
Hits:
Description: 介绍了MATLAB下控制无刷直流电机 采用闭环控制 各模块讲解比较详细-MATLAB introduced under the control of brushless DC motor closed-loop control of each module to explain in more detail
Platform: |
Size: 567296 |
Author: 孙欣 |
Hits:
Description: 锁相环matlab仿真模拟代码,通过相位实现调控(Phase locked loop matlab simulation code, control by phase)
Platform: |
Size: 399360 |
Author: MFC_B
|
Hits:
« 12
3
4
5
6
7
8
9
10
...
48
»