Posted by Papa_Smurf on Oct 13, 2009 in
Control Systems,
MATLAB
To start out, setup the open loop transfer function.
Next, you can choose to set up the MATLAB code in a few different ways. First make sure that both the numerator and denominator are in acceptable forms.
[1 2 3] is the same as saying
Using an example:
We can write the numerator and denominator MATLAB codes as:
>>numerator=[1];
>>denominator=[1 8];
For a more complex [...]
Tags: Root Locus, root locus matlab, root locus method
Another simple review of the vector dot product, for those of you that have forgotten. The operation that involves multiplying two vectors together can be done in a few ways. The first operation is called either the scalar product or the dot product. One of the well known definitions looks like this:
RULE 1:
This is [...]
Tags: dot product, dot product angle, find dot product, vector angle, vector dot product, vectors
This is a very simple post and a very simple subject, but every once in a while even the experts need to be reminded how to do simple addition and subtraction with vectors. Let’s go ahead and specify a couple vectors that we can work with.
Vector
In MATLAB: >>A = [1 2 4];
Vector
In MATLAB: [...]
Tags: adding vectors, subtracting vectors, vectors
Posted by Jeff on Aug 31, 2009 in
Calculus,
MATLAB
This is how you calculate the volume of an ellipsoid with the following equation.
rmax = 1;
V = 0;
step = 0.02;
A = 5;
B = 10;
C = 15;
for x= -5 : step : 5
for y = -10 : step : 10
for z = -15 : step : 15
if((x/A).^2 + (y/B).^2 + (z/C).^2) < rmax
V = V + [...]
Tags: Elipsoid, Ellipsoid, Ellipsoid Volume, Volume of Ellipsoid