Question: Matlab Craft a custom function named FlowRegime [ 2 pts] that: - accepts 3 variables in the input argument list, with the following names, in
Craft a custom function named FlowRegime [ 2 pts] that: - accepts 3 variables in the input argument list, with the following names, in the following order, pipeD ... is a pipe diameter (ft) velocity ... is the fluid velocity ( ft/s) kinVisc... is the fluid's kinematic viscosity (ft2/s)(e.8.0.93105ft2/s for water) and displays this information to the CW in a complete and easily read format. [5 pts] - computes the Reynolds Number: Re - (velocity)(PipeD)/kVisc [3 pts] and displays it to the CW as "Re- number" where the number has no fractional part. [5 pts] - assigns a value of false to the logical variable "turbulent" if the Reynolds Number is less than 4,000 or a value of true if the Reynolds Number is equal to or greater than 4,000. [5 pts] - returns the value of "turbulent" to the source of the function call. [3 pts]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
