Question: Write a MATLAB function called TipSlide that determines if the crate is sliding or tipping for inputs P , y , m , I, and

Write a MATLAB function called TipSlide that determines if the crate is sliding or tipping for inputs P,y,m,I, and , where:
P is the pushing force applied to the crate, in Newtons.
y is the distance from the ground to the pushing force (P), in meters.
m is the mass of the crate, in kilograms.
I is the width of the crate, in meters.
mu is the coefficient of static friction between the ground and the crate.
Your function should return -11 if the crate is sliding, 0 if the crate is tipping, and 1 if the crate is neither sliding nor tipping. Your function should work for any number of sets of the parameters described above, with each value of the relevant parameter being stored as the corresponding element of one of the input arrays. For example, consider two sets of the relevant parameters for this problem, {P1,y1,m1,l1,1} and {P2,y2,m2,l2,2}. We can use array vectors to store these parameter sets as:
P=[P1P2],y=[y1y2],m=[m1m2],l=[l1l2],=[12]
If the first set of parameters results in tipping and the second set of parameters results in sliding, the output of your function should be [0-1].
Write a MATLAB function called TipSlide that

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!