Answered step by step
Verified Expert Solution
Link Copied!

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 #4: 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 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 4
If an entry in B is less than zero then add 3 to it.
Then use this new function to create a matrix A obtained by modifying the following 2727 matrix B(which you can copy and paste directly into Matlab). Then find the determinant of A
-06-8102-97;-5-64-53-1-128-710-8-91011049-246-7-727-84;4-686-4-1-0-0-1-7-67-5
4-28687-26-9382-4-2;7-4-746-1133-7-186-1-199418-6-367-474;6-2-25-4-1346-0
-61-1-8-8-8-7-4-2-71101047-43;91002-7786-8-17-10-6-6-3-4-1910-0-65493-9-1;-5-1
-57-6-09-10-52-852-1088-5-561044810-2-1-4;-24210-703995-9-3-27-3-64760-931
2518;54-13-8-10-52-8-6-4-84-61075-1-18-40-2-3-48-1;-6-38-2-4-2-9800-23-2-9-1-5
-0-4-37-2-8-29109-4;08-1-7112-97-5-64-4804-210-1-6-2-73-5427;29-66-458-8-455
1104-10-29-6-6-002-5-043-4
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 you then make changes to that file, those changes will not be made when you call the function again unless you first clear the function from memory using the clear command (for example, 'clear modify_matrix').
Problem #4:
image text in transcribed

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: 3

blur-text-image

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

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

More Books

Students also viewed these Databases questions