Question
MATALB,
please provide matlab code script. thank you.

Problem For the equation 2x” +3x +5x=2t, write the following equation in the form X=Ax+Bu where X1=X X2=X
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Matlab code:

% Defining the differential equation

syms x(t)

difeqn = 2 * diff(x , 2) + 3 * diff(x , 1) + 5 * x == 2 * t;

% Converting to single order differential equation

singleorder = odeToVectorField(difeqn);

% Displaying the result

disp('dx1 / dt = ')

disp(singleorder(1));

disp('dx2 / dt = ')

disp(singleorder(2));


1 2 3 4 5 % Defining the differential equation syms x(t) difeqn = 2 * diff(x, 2) + 3 * diff(x, 1) + 5 + x == 2 *t; - % Conver

OUTPUT:

dx1 / dt Y[2] dx2 / dt = t - (5*Y[1])/2 - (3*Y[2])/2

Add a comment
Know the answer?
Add Answer to:
MATALB, please provide matlab code script. thank you. Problem For the equation 2x” +3x' +5x=2t, write...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT