Question: Write a MATLAB function that takes the spring constants and masses as inputs and returns the corresponding vector of displacements for the free-fixed masses and
Write a MATLAB function that takes the spring constants and masses as inputs and returns the corresponding vector of displacements for the free-fixed masses and springs problem with three masses (and three springs). 2. Write a MATLAB script that calls the function and returns the results for two different cases: (a) {c1, c2, c3} = {8, 3, 1}, {m1, m2, m3} = {1, 1, 1} (case 1) (b) {c1, c2, c3} = {20, 8, 3}, {m1, m2, m3} = {3, 2, 1} (case 2) Use a value of 1 for gravitational acceleration.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
