CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - calculator in matlab
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - calculator in matlab - List
[
Other
]
INTRODUCTION TO MATLAB FOR
DL : 0
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
Update
: 2012-02-26
Size
: 252.23kb
Publisher
:
taffy320
[
Mathimatics-Numerical algorithms
]
Calculator
DL : 0
一个简单的计算器,用MATLAB开发-a simple calculator, developed using MATLAB
Update
: 2025-02-19
Size
: 111kb
Publisher
:
哈哈哈
[
matlab
]
Matlab编的计算器
DL : 0
本程序是在Matlab6.5下编写的一个计算器的程序,是Matlab的GUI编程的很好例子。 -the procedure was Matlab6.5 prepared a calculator procedures, Matlab GUI Programming good example.
Update
: 2025-02-19
Size
: 6kb
Publisher
:
代丛军
[
Other
]
simulate-dpsk8
DL : 0
本例用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.
Update
: 2025-02-19
Size
: 2kb
Publisher
:
陆游
[
matlab
]
MATLABjisuanqi
DL : 0
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.
Update
: 2025-02-19
Size
: 16kb
Publisher
:
潘世雄
[
matlab
]
ca
DL : 0
matlab计算器的示例,适合初学者学习之用.-matlab calculator example, suitable for beginners learning.
Update
: 2025-02-19
Size
: 4kb
Publisher
:
wl
[
Other
]
jsq
DL : 0
这是我的一个实验设计,利用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
Update
: 2025-02-19
Size
: 54kb
Publisher
:
蔡泽鹏
[
matlab
]
calculator2(m)
DL : 0
在matlab中使用m函数实现简单计算器功能,包括加、减、乘、除。-The use of m in the matlab function realize a simple calculator functions, including add, subtract, multiply, divide.
Update
: 2025-02-19
Size
: 1kb
Publisher
:
wanglu
[
Windows Develop
]
calculator(GUI)
DL : 0
用Matlab中的GUI实现简单的计算器,包括加、减、乘、除等功能。-Using Matlab
Update
: 2025-02-19
Size
: 6kb
Publisher
:
wanglu
[
matlab
]
calculator
DL : 0
用matlab编写得计算器,很好用得,不妨-Matlab prepared using a calculator, a very good use might be
Update
: 2025-02-19
Size
: 1kb
Publisher
:
刘阔
[
matlab
]
matlab
DL : 0
matlab中编写计算器程序,matlab中编写计算器程序-matlab calculator in the preparation of procedures, matlab calculator in the preparation of procedures
Update
: 2025-02-19
Size
: 1kb
Publisher
:
卢利
[
matlab
]
Calculator
DL : 0
这是在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.
Update
: 2025-02-19
Size
: 11kb
Publisher
:
朱留路
[
matlab
]
counter
DL : 0
模拟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
Update
: 2025-02-19
Size
: 3kb
Publisher
:
liujin
[
matlab
]
tricordic
DL : 0
用CORDIC计算器计算sin,cos。包含浮点仿真模型和定点仿真模型-CORDIC calculator with sin, cos. Contains the floating-point simulation model and the fixed-point simulation model
Update
: 2025-02-19
Size
: 1kb
Publisher
:
Fengxiaodong
[
Mathimatics-Numerical algorithms
]
calculator
DL : 0
这是一个科学计算器的matlab程序,大家可以参考下-This is a scientific calculator matlab program, we can refer to the following
Update
: 2025-02-19
Size
: 19kb
Publisher
:
zhuling
[
matlab
]
calculator
DL : 0
a short code of a calculator in matlab
Update
: 2025-02-19
Size
: 7kb
Publisher
:
godof
[
matlab
]
matlab-codes
DL : 0
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
Update
: 2025-02-19
Size
: 5kb
Publisher
:
nashwa
[
Software Engineering
]
Building-GUI-interfaces-in-Matlab
DL : 0
用matlabGUI建立一个计算器的详细说明,里面有图片和文字说明,简单易懂,非常容易上手-This example shows how to build user GUI in Matlab. We will build a simple calculator to do that.
Update
: 2025-02-19
Size
: 177kb
Publisher
:
siming89
[
matlab
]
calculator
DL : 0
Matlab编写的计算器,能实现普通计算器的各种功能-calculator in Matlab circumstance
Update
: 2025-02-19
Size
: 8kb
Publisher
:
Ritchie
[
matlab
]
Fourier-series-calculator-in-matlab
DL : 0
Fourier series calculator in matlab
Update
: 2025-02-19
Size
: 3kb
Publisher
:
hesam
«
1
2
3
4
5
6
7
8
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.