Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Input Your function script will receive one 4 4 matrix directly from the calling program, through the input argument list. Output Your function script will
Input
Your function script will receive one matrix directly from the calling program, through the
input argument list.
Output
Your function script will display to the command window the final value and only the final
value of the variable small each time through the outer for loop. ie display the value of
small after you exit the inner for loop.
Your function script will return to the calling program the determinant of the matrix.
Method
Your function script should implement all for loops you identified while performing Task #
and Task # in the Preparation section.
Be very careful to reproduce all commands accurately. There is a pair of errors you could
include that would not cause an incorrect answer. However, it is still an error, and will cost you
points. There are two ways to check for this pair of errors:
Figure out what values the data structure small is storing, and check it against the
corresponding values for your input matrix. I recommend the Matrix Review document
from Topic on the Canvas Modules page.
WARNING: never change a program that is complete and works make a copy of the
code and change the copy. Expand your code to take the determinant of a matrix
using the same method. It will require an addition level of for loop outside your
current outer for loop. If you accurately reproduce the necessary commands, the pair
of errors will become a trio of errors that will produce the wrong answer.
PLEASE ANSWER IN MATLAB
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started