The folumite pruations and variubles ace fetsted to this broblem set Stait your MeATLAB and copy the followine seript file into your MATUA cuarent working folder, You can trpe cd in the command window to find out y. cirrent working directory You strould see the sbortcode in in . Me showing up in your Current folder window as shown below. If roy do not wee the hile copy or drag the hie into the window. If you have difficulty copying the file. Int your instructor know. Type the following command to open the script fle edit shortcodesin Answer the following question by adding or modifying code in the file. Upload the file after you funish. Problein 1 . Write the code to calculafe gamma ( ) using the following equation y=12111 The rest of the questions can be found in the script file. Anwaer the folleaing 5 guestians by adding er aodifying the code Frobles it catclutate the Lorentz factar gama Do not change the folocieing une Verand (1) icaseis s write the expression in teras of y and c by modifyang the following line gamandi P Problem 21 create a matrix and find a logicel index s Generate the fellowing 3 by 5 matrix and name it as p2. Wrtiet the code to find the logical index for the values are larget than 10 or smaller than 5 IndexP2=e; Problen 3: random number * Write a code to generate a 1 by 20 randon floating number called P3. s These numbers are unifora distributed floating number between 10 and 20. P3a; Problea 4: Another randon number 8 A study shows the height of 14 years old girls are normally distributed. \$ The mean is 1.512 meters and the standard deviation is 0.0741m. \$ Write the code in MATLAB to create a 1 by 10009 array with the above s distribution and assign it as P4. P4=0; Do not modify the following line. It whitl show the distribution of your X random number P4 hist (P4,30), x label('Meters'), y lable('Density') +itle('Might distribution') X ps: Create a matrix using conmand froe chs x Use a combinition from teh following conmands ones, zeros, diag, eye, fliplr, flipud to create the following matrix PS * You can run this code to test your result. x upload this file after you finish the code. The following equations and variables are related to this problem set Start your MATLAB and copy the following script file into your MATLAl current workind foldet. Vou can type cd in the command window to find out vinu current wovking directory. You hould see the shortcode.m i file showing up in your Cument folder windew as shown below. If you do not see the fle, copy or drag the hie into the window. If you have difficuity copying the file, letyour instructor know. Tyeu the following command to open the script file s z edit shortcodem Arawer the following question by adding or modifying code in the file. Upload the file after you finish. Problem 1 e White the code to calculate gamra () using the following equation 7=1921 The rest of the questions can be found in the script hle. Ahiner the follouing 5 questions by adding or modifying the code S Rroblen 1 i catclutate the Lorentz factor gama W be not change the foloowing line Varand(1); Ci3es: I write the expression in terms of v and c by modifying the following line pannave; 8 Probten 2: Create a matrix and find a logical index s Cenerate the following 3 by 5 matrix and name it as p2 W wrtiat the code to find the logical index for the values are larget than 8 10 or smaller than 5 index P2a; S Problem 3: random number 8 write a code to generate a 1 by 20 random floating number called p3. x These numbers are uniform distributed floating number between 10 and 20. I Problen 4: Another random number A A study shows the height of 14 years old girts are normatly distributed. * The mean is 1.512 meters and the standard deviation is 0.e74in. s write the code in maTLib to create a 1 by 10000 array with the above 8 distribution and assign it as P4. P4.0: I on not modify the following Line. It whitl show the distribution of your hist(p4, ab), Xlabel('Meters'), ylablef 'Density'), tit le('Might distribution') * Psi craate a matrix using comand fren che \& Use a combinition froe ten fotlowing comands E to create the folioming, extrix ruptr, fupud rou can run thas code to test your result. voload this file after you finjsh the cade