 |
MATLAB
Examples
These Matlab
examples thorougly introduce the basics you need to get started. They
supplement very well the Tutorial
Section.
Example:
Basic Matlab Code
Here
you can find examples on different types of arithmetic, exponential,
trigonometry
and complex number
operations handled easily with Matlab
code...
Example:
Simple Vector Algebra
On this page we expose how simple it is to work with vector algebra,
within Matlab...
Example:
MATLAB Plots
In this group of examples, we create several cosine MATLAB plots, work with different resolution
and plot parameters...
Example:
MATLAB programming (Script Files)
In
this example, we program the plotting of two concentric circles
and mark the center point with a black square. We use polar coordinates
in this case (for a variation)...
Example:
A custom-made Matlab function
Even
though Matlab has plenty of useful functions, in this example we
develop a custom-made
Matlab function. We have one input value and two
output values to transform a given number in both Celsius
and Farenheit
degrees...
Ex.:
Matrix manipulation
In this section we study and experiment with matrix manipulation
and boolean algebra.
This tutorial creates some simple matrices and then combines them to
form new ones of higher
dimensions. We also extract
data from certain rows or columns to form matrices of lower dimensions...
Ex.
Dot Product
The dot product
is a scalar number and so it is also known as the
scalar or
inner
product.
In a real vector space, the scalar product
between two vectors...
Ex.:
Cross Product
In this example, we are going to write a function to find the cross product of two
given vectors u
and v.
If u
= [u1 u2 u3] and v
= [v1 v2 v3]...
Ex.:
Complex Numbers
The unit of imaginary
numbers
is root of -1
and is generally designated by the letter i
(or j).
Many laws which are true for real numbers are true for imaginary
numbers as well. Thus...
Future
Value
This
program is an example of a financial
application in Matlab. It calculates the
future value
of an investment when interest is a factor. It is necessary to
provide the amount of
the initial investment...
From
'Matlab Examples' to home
From
'Matlab Examples' to 'Matlab Tutorial'


|
|