Welcome![Sign In][Sign Up]
Location:
Search - calculator in 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:

[Mathimatics-Numerical algorithmsCalculator

Description: 一个简单的计算器,用MATLAB开发-a simple calculator, developed using MATLAB
Platform: | Size: 113664 | Author: 哈哈哈 | Hits:

[matlabMatlab编的计算器

Description: 本程序是在Matlab6.5下编写的一个计算器的程序,是Matlab的GUI编程的很好例子。 -the procedure was Matlab6.5 prepared a calculator procedures, Matlab GUI Programming good example.
Platform: | Size: 6144 | Author: 代丛军 | Hits:

[Othersimulate-dpsk8

Description: 本例用matlab语言实现了8dpsk的编解码及通过awgn信道的仿真。采用蒙特卡罗仿真法,得到误码性能,绘制曲线。可用于算法研究或课程学习。-cases using the Matlab language of the codec 8dpsk and awgn channel through the simulation. Using Monte Carlo simulation, to be error performance, drawing curves. Algorithms can be used to study or courses.
Platform: | Size: 2048 | Author: 陆游 | Hits:

[matlabMATLABjisuanqi

Description: MATLAB编写的3个简易计算器程序,hh那个是本人综合另两个写出来的,简易好用。具体用法不用我说了,大家将所有代码放在MATLAB安装文件的work里面即可。可能还需要GUI绘图,具体我忘了,一年前做的。-MATLAB prepared by the three simple calculator program, which is my hh another two comprehensive written, Simple handy. I do not have specific directions said, we will put all of the code of MATLAB installation work will be inside. May also need GUI drawings, specific, I forgot, a year ago to do.
Platform: | Size: 16384 | Author: 潘世雄 | Hits:

[matlabca

Description: matlab计算器的示例,适合初学者学习之用.-matlab calculator example, suitable for beginners learning.
Platform: | Size: 4096 | Author: wl | Hits:

[Otherjsq

Description: 这是我的一个实验设计,利用MATLAB的GUIDE图形用户界面工具,实现一个计算器,完成实数的加、减、乘、除、开方、取对数和求幂次。里面有实验报告和代码-This is one of my experimental design, the use of MATLAB s GUIDE graphical user interface tools, to achieve a calculator to complete the real number of add, subtract, multiply, divide, prescription, check on the number and seek power. There are experimental reports and code
Platform: | Size: 55296 | Author: 蔡泽鹏 | Hits:

[matlabcalculator2(m)

Description: 在matlab中使用m函数实现简单计算器功能,包括加、减、乘、除。-The use of m in the matlab function realize a simple calculator functions, including add, subtract, multiply, divide.
Platform: | Size: 1024 | Author: wanglu | Hits:

[Windows Developcalculator(GUI)

Description: 用Matlab中的GUI实现简单的计算器,包括加、减、乘、除等功能。-Using Matlab
Platform: | Size: 6144 | Author: wanglu | Hits:

[matlabcalculator

Description: 用matlab编写得计算器,很好用得,不妨-Matlab prepared using a calculator, a very good use might be
Platform: | Size: 1024 | Author: 刘阔 | Hits:

[matlabmatlab

Description: matlab中编写计算器程序,matlab中编写计算器程序-matlab calculator in the preparation of procedures, matlab calculator in the preparation of procedures
Platform: | Size: 1024 | Author: 卢利 | Hits:

[matlabCalculator

Description: 这是在MATLAB7.0.1版本上实现的一个简单的模拟计算器的界面和功能的程序,主要给有一定基础的初学者提供参考,希望对大家有帮助。-This is the version at MATLAB7.0.1 on the implementation of a simple analog calculator function interface and procedures, the main foundation for the beginner must have a reference, in the hope that everyone has to help.
Platform: | Size: 11264 | Author: 朱留路 | Hits:

[matlabcounter

Description: 模拟windows计算器的MATLAB5.3程序一个简单的例子 <<科学运算语言MATLAB5.3程序设计与应用>>的习题作业-Windows calculator MATLAB5.3 simulation procedure a simple example < < scientific computing language and application programming MATLAB5.3> > operation of the exercise
Platform: | Size: 3072 | Author: liujin | Hits:

[matlabtricordic

Description: 用CORDIC计算器计算sin,cos。包含浮点仿真模型和定点仿真模型-CORDIC calculator with sin, cos. Contains the floating-point simulation model and the fixed-point simulation model
Platform: | Size: 1024 | Author: Fengxiaodong | Hits:

[Mathimatics-Numerical algorithmscalculator

Description: 这是一个科学计算器的matlab程序,大家可以参考下-This is a scientific calculator matlab program, we can refer to the following
Platform: | Size: 19456 | Author: zhuling | Hits:

[matlabcalculator

Description: a short code of a calculator in matlab
Platform: | Size: 7168 | Author: godof | Hits:

[matlabmatlab-codes

Description: matlab programs counting coins finding an object in an image gui in matlab codes in image processing in matlab , math calculator with gui in matlab
Platform: | Size: 5120 | Author: nashwa | Hits:

[Software EngineeringBuilding-GUI-interfaces-in-Matlab

Description: 用matlabGUI建立一个计算器的详细说明,里面有图片和文字说明,简单易懂,非常容易上手-This example shows how to build user GUI in Matlab. We will build a simple calculator to do that.
Platform: | Size: 181248 | Author: siming89 | Hits:

[matlabcalculator

Description: Matlab编写的计算器,能实现普通计算器的各种功能-calculator in Matlab circumstance
Platform: | Size: 8192 | Author: Ritchie | Hits:

[matlabFourier-series-calculator-in-matlab

Description: Fourier series calculator in matlab
Platform: | Size: 3072 | Author: hesam | Hits:
« 12 3 4 5 6 7 8 »

CodeBus www.codebus.net