Question: 1. Write a Matlab script that will solve the system of linear equations shown below. This can be done by solving for the vector

1. Write a Matlab script that will solve the system of linear equations shown below. This can be done by solving for the vector of unknowns (X) in the equation AX-B where A is the coefficient matrix and B is the vector on the right-hand side. In the script, also include code to verify that the result is correct. 3x-2y = -1 MATLAB R2013a HOME PLOTS FILE Find Fles New New OpenCompare Import Save Script Data Workspace APPS Current Folder Name Prob_1_and_2.m Analyze Code Run and Time Clear Commands CODE VARIABLE C: Users jfaller Dropbox EGCP-447 HW HW1 Code Command Window Prob_1_and_2m (MATLAB Script) 0.2000 0.8000 52- 18 >> | -x-6y=-5 New Variable Open Variable Clear Workspace A Smink Library SIMULINK Search Documentation ?Community Preferences Set Path Paralel ENVIRONMENT H Layout Help Workspace Name EBEBEBER Request Support Add-Ons RESOURCES 82 Value [-1:-5) [-1:-5] 10.2000;0.8000] Command History y 14/2) + (3/2) y2 (5/6) (1/6) plot (x, yl); -hold on: -X plot (x, y2, "a"); xlabel('x'); 'ylabel('y'); O matlab_exercise 7/8/2014 10:33 Al- Ready Figure 1: Results (X) and the solution to the equation to AX = B using X (stored in a variable called B2). B2 is used to verify the results.
Step by Step Solution
3.50 Rating (153 Votes )
There are 3 Steps involved in it
Matlab code A 3 2 1 6 B 1 5 result AB x result1 y ... View full answer
Get step-by-step solutions from verified subject matter experts
