Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task: Bilatein has developed a new shack absorber system for racing cars. This new shock has different dampening behaviar that is dependent an the amount
Task: Bilatein has developed a new shack absorber system for racing cars. This new shock has different
dampening behaviar that is dependent an the amount of compression the shock is seeing. At the crossover point
cp of compression the spring constant changes from a linear behavior to a nonlinear behawior. The
expressions of the spring constants at different compression ranges are shown in the table below:
Shack Behavior
The current parameters for the shock aborber are shown in the table below:
Parameters
Dampening Force F is defined as
As the new engineer and MATLAB expert in the design group, you are tasked with writing a MATLAB code that
will plot the force as a function of compression, so the department hesd can visualize the dampening behavior. It
is also desired to have a waming displayed if the total travel goes past the maximum compression, which would
bottom out the shock absorber Since the spring constant, crossaver paint and maximum compression may still
be changed, you need to keep these as variables in your calculations for quick adjustment.
Write a MATLAB script file mfile that will calculate the dampening force F as a function of the compression,
x and generates a plot.
Your script file should da the follawing:
A Declare all parameters as variables at the beginning of the script file and use these variables in your
subsequent calculations.
B Include detailed comments on all lines of code that say what the line of code is daing and include units, if
applicable.
C Contain a decisional structure to account for the changing spring constant with compressian. The structure
should also issue a warning if the travel will exceed the maximum compression.
D Make D plats of the dompening force F as function of compression. x Maloe a plot for two compression
ranges that are shown in the sarne figure window:
From to maximum compression
below to above the crassover paint.
Label both axis with units, title and add grid lines on both plats.
Extra Credit pts
Place the decisianal structure you developed in part C in a MATLAB function file that is appended to the script
file you created. Call the function file and pass the compression, k crossover point, cp spring constant k and
the maximum compressian max to the function file to calculate the dampening force. The script and function
file must be included in mfile that you are submitting to CANVAS.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started