Question: Write a MATLAB function called stress to compute stress (psi) given force (bf) and diameter (inches). The function should have two inputs. The first input
Write a MATLAB function called stress to compute stress (psi) given force (bf) and diameter (inches). The function should have two inputs. The first input is a vector representing force values in psi, and the second input is a scalar representing the diameter in inches. The output should be a vector the same size as the input force and will be the value of stress in psi. For example, it the inputs are force 100 ibf and diameter 0.5 inches, then the output should be 509 2958 psl. It the inputs are force [100:1000) ibt and diameter 0.25 nches, then the output shouid be (2037.18; 20371.8)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
