2- Create a script and save it as HW12.m. The script will do the following a. Cr
ID: 3732406 • Letter: 2
Question
2- Create a script and save it as HW12.m. The script will do the following a. Create a random column vector X of size (100x1) b. Save the vector X as.MAT file called 'My_data1.mat' using the command save c. Clear the workspace using the command clear. Note that the workspace is empty. d. Load the vector X using the command load. e. Call the function Get_Min1( function on the vector X and assign it to m1. The command looks like m1-Get_Min1(X) Compare the value of m1 to the result of the building function min). The command looks like m2-min(X) You should get the same value. Run the script several times to create different random vectors. You still will get the same min values (m1- m2). f. g.Explanation / Answer
%since you havent provide any information about Get_min, i cant show you the output, but these commands should work fr you if you have Get_Min1 saved
X=rand(1000,1);
save('My_data1.mat','X');
clear
load My_data1.mat
m1=Get_Min1(X)
m2=min(X)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.