Question: 1. 5 pt] Write a script called, YourLast NameGrashof, to determine the Grashof condition of a fourbar linkage. The program must ask the user to
1. 5 pt] Write a script called, YourLast NameGrashof, to determine the Grashof condition of a fourbar linkage. The program must ask the user to input a row vector containing the four link lengths in the order of L1 L2 L3 L1] and return the respective Grashof condition as a text output as "Grashof", "Special Grashof", or "Non-Grashof". In the case of Grashof, the program nceds to compute if the mechanism is "Crank-Rocker", "Double-Crank" or, "Double-Rocker" The program should output an error for an invalid link length i.e. zero and negative and if the user input less than or more than 4 link lengths. You can use link lengths from Problem 2.15 (Pg 84) to check your program. Submit the printout of your m-file and submit the 1. 5 pt] Write a script called, YourLast NameGrashof, to determine the Grashof condition of a fourbar linkage. The program must ask the user to input a row vector containing the four link lengths in the order of L1 L2 L3 L1] and return the respective Grashof condition as a text output as "Grashof", "Special Grashof", or "Non-Grashof". In the case of Grashof, the program nceds to compute if the mechanism is "Crank-Rocker", "Double-Crank" or, "Double-Rocker" The program should output an error for an invalid link length i.e. zero and negative and if the user input less than or more than 4 link lengths. You can use link lengths from Problem 2.15 (Pg 84) to check your program. Submit the printout of your m-file and submit the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
