Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Code needs to be usable in MATLAB The following suspension system has two suppor

ID: 669861 • Letter: C

Question

Code needs to be usable in MATLAB

The following suspension system has two support structures—a spring and a rubber pad. Vertical force F (N) acts on the moveable plate. The spring has a spring constant of k1 = 1000 N/m. The rubber pad has a spring constant of k2 = 20000 N/m. The rubber pad starts touching the moving plate when the plate has moved down by a distance of a = 4 cm from the unloaded position. Define a function m-file that calculates the displacement x for given inputs of F, k1, k2, and a. Using the function, calculate the displacement for F = 0, 20, 40, 60, 80, 100 N. Plot these in F-x coordinates (F-horizontal, x-vertical) using solid lines and square markers. Annotate the figure.

Hint: the suspension system becomes stiffer for F > 40 N = k1*a. When the plate is supported only by the spring, the force is F = k1*x, whereas when the plate is supported by the spring and the rubber pad, the force is F = k1*x + k2*(x-a).

Explanation / Answer

function X = m-file(F,k1,k2,a)
% X = (F + k2*a)/(k1+k2)
X = (F + k2*a) ./ (k1+k2);
end

f = [0 20 40 60 80 100];
for i = 1:6
X = m-file(f(:,i),1000,20000,4)
end

% plotting
F = linspace(0,100,20);
X = zeros(1,20);
for i = 1:20
X(:,i) = m-file(f(:,i),1000,20000,4);
end
plot(X,Y);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote