Question: in mathlab % Answer the following 5 questions by adding or modifying the code % Problem 1: calclulate the Lorentz factor gamma % Do not

in mathlab  in mathlab \% Answer the following 5 questions by adding or
modifying the code \% Problem 1: calclulate the Lorentz factor gamma %
Do not change the foloowing line V=r and (1);C=3e8; \% Write the

\% Answer the following 5 questions by adding or modifying the code \% Problem 1: calclulate the Lorentz factor gamma % Do not change the foloowing line V=r and (1);C=3e8; \% Write the expression in terms of V and c by modifying the following line gamma =0; \% Problem 2: Create a matrix and find a logical index \% Generate the following 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 index_P2=0; \% Problem 3: random number \% Write a code to generate a 1 by 20 random floating number called P3. P These numbers are uniform distributed floating number between 10 and 2. \% Problem 4: Another random number \% 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 10000 array with the above \% distribution and assign it as P4. P4=; \% Do not modify the following line. It whill show the distribution of your \% random number P4 hist (P4,30), xlabel('Meters'), ylable('Density'), title('Hight distribution') \% P5: Create a matrix using command from Chs \% Use a combinition from teh following commands \% ones, zeros, diag, eye, fliplr, flipud \% to create the following matrix p5 \% wrtiet the code to find the logical index for the values are larget than \% 10 or smaller than 5 index P2=0; \% Problem 3: random number \% Write a code to generate a 1 by 2 random floating number called P3. \% These numbers are uniform distributed floating number between 10 and 20. P3=0; \%. Problem 4: Another random number \% 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 10000 array with the above \% distribution and assign it as P4. P4=0; \% Do not modify the following line. It whill show the distribution of your \% random number P4 hist (P4,30),x label('Meters'),ylable('Density'), title('Hight distribution') \% P5: Create a matrix using command from Chs \% Use a combinition from teh following commands ones, zeros, diag, eye, fliplr, flipud \% to create the following matrix PS \% You can run this code to test your result. \% Upload this file after you finish the code. Type the following command to open the script file >> edit shortcode.m Answer the following question by adding or modifying code in the file. Upload the file after you finish. Problem 1: Write the code to calculate gamma () using the following equation =1c2v1 The rest of the questions can be found in the script file

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!