Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a new folder for Module4 in your Matlab1051 folder (that you created last week). Make sure this your Current Folder. If unsure, please ask

image text in transcribed

image text in transcribed

Create a new folder for Module4 in your Matlab1051 folder (that you created last week). Make sure this your Current Folder. If unsure, please ask a tutor. Create a new script using the command: >> edit gausElim and click 'Yes' to create a new file. In the script you created above, copy-paste the following code: %gaus Elim.m AWN 000 % create matrices A and b, %ready for computing Ax=b A = [1 -2 4; 2 -3 9; 5 -9 21]; b = [1;4;7]; % augment the matrices %using concatenation Ab_aug = (A b] % use the RREF function to % do row reduction on (Ab) 12 rowRed = rref (Ab_aug) 13 % find the nullspace of the matrix A 14 nullspace = null(A, 'r') Save and Run your code. You should see the following output in your Command Window. >> gausElim 10 Ab_aug = 1 -2 2- 39 5 -9 rowRed = 1 0 0 1 6 1 nullspace = Exercise 5 After running gausElim, what part of your output is the particular solution, p, to Ax=b, where x=p+y? How would you use indexing to set the variable p to the above? >> p = rowRed What about y

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are the purposes of promotion ?

Answered: 1 week ago

Question

Define promotion.

Answered: 1 week ago

Question

Write a note on transfer policy.

Answered: 1 week ago