Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem # 4 : Create a new function file called modify _ matrix.m . Then copy and paste the contents of the create _ matrix.m
Problem #: Create a new function file called modifymatrix.m Then copy and paste the contents of the
creatematrix.m file into this new file, and change the name of the function in the first line to
modifymatrix instead of creatematrix
By further modifying this new file, write a function that will output a matrix A obtained by modifying an input
matrix in the following way:
If an entry in is greater than or equal to zero then multiply it by
If an entry in is less than zero then add to it
Then use this new function to create a matrix A obtained by modifying the following matrix which
you can copy and paste directly into Matlab Then find the determinant of
Warning! When Matlab first reads a function from a file, it stores the function in memory and then uses that
stored function instead of reading the file in subsequent calls to the function. Therefore if after calling a function
vou then make changes to that file those changes will not be made when vou call the function again unless vouCreate a new function file called modifymatrix.m Then copy and paste the contents of the creatematrix.m file into this new file, and change the name of the function in the first line to modifymatrix instead of creatematrix
By further modifying this new file, write a function that will output a matrix A obtained by modifying an input matrix B in the following way:
If an entry in B is greater than or equal to zero then multiply it by
If an entry in B is less than zero then add to it
Then use this new function to create a matrix A obtained by modifying the following times matrix B which you can copy and paste directly into Matlab Then find the determinant of A
B ;;;;;;;;;;;;;;;;;;;
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started