matlab problem

Semidevil

Diamond Member
Apr 26, 2002
3,017
0
76
ok, given the differential equation

V = (1 + K(p))v + k(1)v = k(p)V(d) + k(1)V(d)

where the actual speed is
v
the desired speed is
v(d) and K(p)

k1 and constants,

use the laplace transform method to find the unit step response.

ok, so how the heck do I do this in matlab?

there are 3 cases, a, b, c.

for case a:
k(p) = 9
k1 = 50.

how do I do case one?

I knw that I need to use symbolic matlab to solve thils.

so do I start with syms v k v(d)?
 

Spac3d

Banned
Jul 3, 2001
6,651
1
0
I am currently developing a program for a major corporation in Matlab... but I have no idea how to help you.

I just do the programming, not the math, thank god.
 

jwells777

Senior member
Feb 18, 2001
346
0
71
I am not certain whether I follow the notation that you are using however I suspect that you should not be using the 'syms' command. More likely, the commands that you are interested in are 'tf' and 'impulse'. Below is a simple script showing the impuse response of a low pass filter with a pole at 1 rad/s. It also shows the bode plot of the system if you are interested.

clear;

s = tf('s');
sys = 1/(s+1);
figure(1)
impulse(sys);
figure(2)
bode(sys);

Good luck.

J


EDIT: I just realized that you may be looking for a symbolic solution to the differential equation rather than the numerical solution. If so, then the symbolic toolbox is probably the way to do so in Matlab. However, if the symbolic solution is what you seek, I recommend using Mathematica instead of Matlab as it is more oriented towards that type of work.