• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

matlab problem

Semidevil

Diamond Member
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)?
 
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.
 
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.
 
Back
Top