WelcomeBasicsPlots and GUIApplicationsOther
|
Matlab
Programming -
(Matlab Cookbook II)
This page continues our work with Matlab programming. You can see other
pages like:
Basic
Matlab Tutorials
Basic
Matlab
Examples
Table
of Contents
Angle between two Vectors
This
article shows how to calculate the angle
between vectors, the angle
between
each vector and axis, and the magnitude of each vector. The vectors are
given
in three dimensional space...
Fibonacci
Numbers
The first two Fibonacci
numbers are 0 and 1, and each remaining
number
is the sum of the
previous two. Some sources neglect the initial
0, and
instead beginning the sequence with the first two 1s...
Binary
to
decimal conversion
We're going to present four variations of a binary-to-decimal conversion
in Matlab; that is, we're going to convert binary
numbers (numbers with only symbols '0' and '1') to decimal numbers...
Decimal
to
Binary conversion
Two methods for a decimal-to-binary
conversion
in Matlab; we're going to
convert decimal numbers
(numbers with 10 different symbols, from '0' to '9', or in base 10)
into binary
numbers...
Binary
to Hexadecimal numbers
A major numbering system
used in digital systems is the
hexadecimal system (base 16). Let's see how we can work with 4-bit
binary groups...
Hex
to Binary conversion
The following table shows
the meaning of all the symbols in
the hexadecimal
numbering system and their conversion to binary equivalents...
Octal to Binary conversion
To convert a value from octal
to binary, we first need to know what an octal number is. A
major numerical system,
or base, used in digital elec...
Decimal to Octal
Two methods for a decimal-to-octal
conversion
in Matlab; we're going to
convert decimal numbers into octal ones...
Octal to Decimal
Gray Code - to/from Bin or Dec
The Gray code code
was originally designed to prevent undesired
transient states or outputs from electromechanical
switches. Today,
this code
is used to facilitate error correction in digital communications...
MS
Excel and Matlab
Interchange of information between these two programs...
Nodal Analysis - find voltages in
a circuit
Circuit
Simulation using WinSpice and Matlab
In this article, a Matlab
routine to drive the WinSpice circuit
simulator is
presented. This
method can be easily adapted to
simulate and drive any circuit entered in WinSpice. The
performance of the Matlab
driver is illustrated by simulating an amplifier...
An
improved
routine to drive WinSpice from Matlab
The
approach
developed now utilizes the inherent capability of
this SPICE simulator to include
other circuit text files
with parameters, and print data
to external .csv (comma separated values) files...
Mathematical
Optimization
To continue with our Matlab programming ideas, let's explore functions 'fminbnd' and 'fminsearch' to
achieve minimization of functions, which also can be considered a
mathematical optimization for the function...
Find Intersections
The problem of how to find
intersections of given lines is
very common in math or basic algebra. The meaning of those
intersections is
that the given lines...
Nonlinear
Simultaneous Equations
Another application of the optimization
techniques is the solution of nonlinear systems. We can
express the solution as a minimization problem...
Curve
Fitting based on Optimization techniques
In this article we're going to show a practical approach to
solve a curve fitting with Matlab. This explanation is
neither formal nor comprehensive, but straightforward and
useful...
Exponential Regression
We’ll
work this time with exponential
regression in a curve fitting example. The
following codes find the coefficients of an equation for an exponential
curve...
Simple
Image Processing
These are some basic
ideas on RGB images
(or image process
in Matlab programming).
These concepts are fundamental and don't require any special toolbox...
Line
detection
This
experiment explores line
detection (for image
analysis) with this numerical software. No toolbox is
needed...
From
'Matlab Programming'
to home
|
|
|