Question: Create a new function file called modify _ matrix.m . Then copy and paste the contents of the create _ matrix.m . file into this

Create a new function file called modify_matrix.m. Then copy and paste the contents of the create_matrix.m. file into this new file, and change the name of the function in the first line to modify_matrix (instead of create_matrix). By further modifying this new file, write a function that will output a matrixAobtained by modifying an input matrixBin the following way: 1. If an entry inBis greater than or equal to zero then multiply it by 22. If an entry inBis less than zero then add 4 to it. Then use this new function to create a matrixAobtained by modifying the following22\times 22matrixB

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!