Write and execute a Matlab function that takes a body\'s mass and velocity and c
ID: 3678043 • Letter: W
Question
Write and execute a Matlab function that takes a body's mass and velocity and calculates the Kinetic Energy of the moving body: KE = 1/2 mv^2 where m is mass in kg and v is velocity in m/sec. Execute the function for at least 5 mass-velocity pairs. Create an Excel spreadsheet with 10 rows of data inputs (mass and velocity). Create a new function that uses the KE function from part a that reads the input data from the spreadsheet, computes the Kinetic Energy, and posts the KE function result to a new column in the spreadsheet. The spreadsheet name can be 'hardcoded' (a fixed value) within your function.Explanation / Answer
electromagnetic massequivalent to the "relativistic mass" as indicated above). Since relativistic mass is not often used anymore in modern textbooks, those tests can be described of measurements of relativistic momentum or energy, because the following relation applies:
MATLAB function that takes as input a struct array (where each element represents one body in your solar system), a time step t and a final time T. Each struct in the struct array should have the following elds: name: A string that holds the name of the planet. x: The x-coordinate of the initial position of the planet. y: The y-coordinate of the initial position of the planet. z: The z-coordinate of the initial position of the planet. vx: The x-component of the initial velocity of the planet. vy: The y-component of the initial velocity of the planet. vz: The z-component of the initial velocity of the planet.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.