Question: Use MATLAB language NOTE: start by Pseudo-coding: try to explain your algorithm with words (explained at the bottom.) Cramer's Rule states that for the linear
NOTE: start by Pseudo-coding: try to explain your algorithm with words (explained at the bottom.) Cramer's Rule states that for the linear equation AR b, the solution can be found 1 where lA-bl is the determinant of the modified matrix A where the ith column is replaced by the b column. You may use the command det to calculate determinants. All other commands must be limited to for, while, size, and arithmetic operators. The inputs to the function are A and b only, and the output is x only. There should be no input() prompts, or unsuppressed outputs in the final function. For this assignment, your well-commented .m file code must include your pseudo-code as comments inside it. Label your program lastname_firstinit_ME3430_Activity9.m. Here are some equations to test it on: Lo 0 4 4 01 0 17) 4410:-J13 3 3 3 1 13 6 NOTE: Pseudo-coding is the process in which you figure out how you would like to approach coding. You do not worry about syntax (ie: the specific language/commands and usage of the program), just the logic. For example, if we wished to create a code that created the following function: f(x)- we might write: x, Function will have an input of N and an output of y Create a variable y. Create a counter that goes up by 1 until it equals N, and then add that counter to y each time. This will help direct us as we write the actual code (and we can use the pseudo-code as our comments) function y - summing (N) Function will have an input of N and an output of y. t Create a variable y for 1-1:NCreate a counter that goes up by 1 until it equals N, -y+ii and then add that counter to y each time. end end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
