- Details
- Parent Category: Programming Assignments' Solutions
We Helped With This MATLAB Programming Assignment: Have A Similar One?

Category | Programming |
---|---|
Subject | MATLAB |
Difficulty | Undergraduate |
Status | Solved |
More Info | Matlab Assignment Tutor |
Assignment Description
MATH2860/Fal2016 Assignment 4, Due Tue Nov 22, 12pm.
Fill out the following and submit one print out of this page with your assignment. Group members for which the info is not filled in will receive a mark of 0. The assignment is to be submitted in drop boxes located on the 4th floor of UA.
| TA Name: | Tutorial CRN: |
| Last Name | First Name |
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
ASSIGNMENT (7 MARKS): Use the Laplace transform to solve the following system. THE WORK MUST BE DONE IN MATLAB. Submit one copy per group, in which ONLY the following should be visible (to hide a command’s output, end it with semicolon):
1. an assignment title, names of all group members; for this you can use a string: i.e. ’this is not it but single quotes around this will do it’
2. definition of the differential equations in the system with names deqn1, deqn2; you will need to declare the symbolic variables with syms followed by your variables’ names
3. equations obtained after applying Laplace with names eqn1, eqn2
4. same
equations with ALL IVCs subbed in AND L{x} = X notation
convention; recycle the names eqn1, eqn2 and use the subs command
- i.e. eqn1 = subs(eqn1,old var,new var);
for IVCs like x0(0) = x0 you’ll need to use
a string substitution, i.e.
);
if substitution done in several steps, show only the final step
5. X and Y isolated for; use the command solve([your equations],[your variables]) 6. x and y solutions
7. show NO OTHER LINES OF CODE or COMMENTS.
x00 | + | y00 | = | exp(3t) |
2x0 | + | y00 | = | −exp(3t) |
x(0) = 0, x0(0) = 0, y(0) = 0, y0(0) = 0
INSTRUCTIONS FOR ASSIGNMENT SUBMISSION: Create a new script file, name it laplaceignment, and type all your commands there; execute (click “run”), and make sure everything is fine. At the command prompt in MATLAB type “diary assignment4”, then type “laplaceignment”, then type “diary off”. You should see a text file in your current folder with the name “assignment4”, ADD your names (all group members) at the top of the file, clean and print for submission.