Question: Problem 2: The force required to compress a linear spring is given by the equation F=kx where F is the force (N), and k is

Problem 2: The force required to compress a linear spring is given by the equation F=kx where F is the force (N), and k is the spring constant (N/m). The potential energy stored in the compressed spring is given by the equation where E is the energy (J) The following information is available for 4 springs; this table is provided in the file springs.txt on Blackboard. Spring 1 Spring 2 Spring 3 30 Spring 4 Force (N) Spring constant, k Nm) 20 25 20 200 250 300 400 Write a MATLAB program to read in the information from the file and to calculate the potential energy stored in each spring. Print a table of the results containing the force, spring constant, and potential energy for each spring to a new file. (Hint: Look at help fprintf for information about printing in a table format.) Submit the .m file and the output file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
