Question: Can you please write matlab code for this According to special relativity, a rod of length L moving at velocity v will shorten by an
Can you please write matlab code for this

According to special relativity, a rod of length L moving at velocity v will shorten by an amount , according to the following equation: c2 where c is the speed of light (about 3x108 m/s). A. B. write a function which calculates the amount of deformation , given L and v as inputs. write a separate m-file which computes the deformation for a rod traveling between 0 and 10,000 m/s with increments of 100 m/s. The length of the rod depends on the output value of the rand() function. If the rand command provides an output less than 0.5, the rod is 2m. If the rand command provides an output more or equal to 0.5, the rod is 5m. C. Plot the deformation length against velocity using a line-style of a black-continuous line. Remember to label your plot. Note: Use an if statement to determine the length of the rod
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
