Please put all your solutions into ONE file (preferably PDF, or MS-Word) and upl
ID: 2256633 • Letter: P
Question
Please put all your solutions into ONE file (preferably PDF, or MS-Word) and upload it on ualearn.blackboard.com anytime before the due date and time. Late, hardcopy, or emailed homework is not accepted. Fundamentals of MATLAB and Gauss-Jordan Elimination 1. Write a MATLAB script file to define t-2.5, then evaluate 3r2-cos(1.2T) + te" 2. Write a MATLAB script file to do the followings: . clear the screen and all the values in workspace . define the following variables: a-2, b-3 calculate these variables: c-2a/b, and d-(b/a) evaluate 4eau +r(d 3.this ystemdpendent orkndependent? Wihy? 2x-4y=-8 -3x + 6y=12 4. Use Gauss-Jordan elimination to solve the following simultaneous linear equations. 3x+4x2 +35=19 6x, +3x,+6x, -105 Note: copy and paste the contents of the script files and the MATLAB results into a MS-Word file, add the answer to problem 3 and 4 (you can scan or take a picture of your hand written solution and paste the GOOD QUALITY picture in the word file), then submit the MS-Word file (or PDF) on blackboard.Explanation / Answer
1.
>>t=2.5
>> 3*t^2-cos(1.2*pi*t) + t*exp(-2*t)
2.
>> clc
>> clear
>> a=2
>> b=-3
>> c = 2*(a/b)
>> d = (b/a)^2
>>evaluate = 4*exp((3*c - a)/(a+2*d))+log(d-((2*a)/d))
>>
3.
>> syms x y
>> equation1 = 2*x-4*y==-8
>> equation2 = -3*x+6*y == 12
>>[A,B] = equationsToMatrix([equation1,equation2],[x,y])
>> X = linsolve(A,B)
Answer: x=-4, y=0
Here you get a Warning: solution is not unique because the system is rank-deficient
So This system is independent. Because of the system is rank-deficient
4.
>>syms x1 x2 x3
>> eq1=3*x1+4*x2+3*x3 == 19
>> eq2 = 6*x1-4*x2-x3 == -6
>> eq3 = 6*x1+3*x2+6*x3==105
>>[A,B] = equationsToMatrix([eq1,eq2],[x1,x2,x3])
>> X= linsolve(A,B)
Answer:
x1= 13/9 or 1.444445
x2 = 11/3 or 3.666667
x3 = 0
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.