Home /
Expert Answers /
Advanced Physics /
please-give-as-matlab-code-figure-1-shows-a-mass-spring-model-of-the-type-used-to-design-packaging-s-pa270
(Solved): Please give as matlab code Figure 1 shows a mass-spring model of the type used to design packaging s ...
Please give as matlab code
Figure 1 shows a mass-spring model of the type used to design packaging systems and vehicle suspensions, for example. Figure Q10 - Mass-spring model of the packaging systems and vehicle suspensions The springs exert a force that is proportional to their compression, and the proportionality constant is the spring constant k. The two side springs provide additional resistance if the weight W is too heavy for the centre spring. When the weight W is gently placed, it moves through a distance x before coming to rest. From statics, the weight force must balance the spring forces at this new position. Thus W={k1?xk1?x+2k2?(x?d)? if x<d if x?d? a. Create a function that computes the distance x, using the input parameters W,k1?,k2?, and d. [7 mark] b. Use your function to plot x versus W for 0?W?3000[N] for the values of k1?=104[mN?],k2?=1.5×104[mN?], and d=0.1[m]. Do not forget to label and format your graph.