Use MATLAB to solve the following exercise Solve y 05x w w
Use MATLAB to solve the following exercise:
Solve: y = 0.5x - w where x = [2 64 106 92] and w = [5 6 7 8 9]
Solution
The matrix dimension must agree, hence i am assuming that x has a prefix zero since the size of w is 1 X 5 whereas size of x is 1 X 4
x = [ 0 2 64 106 92];
y = [ 5 6 7 8 9];
y = 0.5 * x - w
![Use MATLAB to solve the following exercise: Solve: y = 0.5x - w where x = [2 64 106 92] and w = [5 6 7 8 9]SolutionThe matrix dimension must agree, hence i am a Use MATLAB to solve the following exercise: Solve: y = 0.5x - w where x = [2 64 106 92] and w = [5 6 7 8 9]SolutionThe matrix dimension must agree, hence i am a](/WebImages/29/use-matlab-to-solve-the-following-exercise-solve-y-05x-w-w-1079996-1761567003-0.webp)