
Concept explainers
Which of the following are not valid program/function file names? Circle all that apply.
- A. 2b_solved.m
- B. calc_circuit.m
- C. graph_data.m
- D. help4me.m
- E. MATLAB is fun.m
- F. matrix*matrix.m
- G. Mult2#s.m
- H. pi.m
- I. ReadFile.m
- J. superCaliFragiListicExpiAliDocious.m
A.

Check whether the given function name or program is valid or invalid.
Answer to Problem 1ICA
The function name 2b_solved.m is invalid.
Explanation of Solution
Rules for naming MATLAB program/function.
- 1. Name of MATLAB function must start with a letter (alphabet).
- 2. The initial letter must be followed by letters, numbers or underscore.
- 3. The name of MATLAB function must not resemble any reserved words in MATLAB.
The given name 2b_solved.m is started with a number not with a letter. Therefore, the given function name is invalid.
Conclusion:
Therefore, the function name 2b_solved.m is invalid.
B.

Check whether the given function name or program is valid or invalid.
Answer to Problem 1ICA
The function name calc_circum.m is valid.
Explanation of Solution
The given function name calc_circum.m meets all the criteria of rules that have to be followed for proper function name. Therefore, the given function name is valid.
Conclusion:
Therefore, the function name calc_circum.m is valid.
C.

Check whether the given function name or program is valid or invalid.
Answer to Problem 1ICA
The function name graph-data.m is invalid.
Explanation of Solution
Rules for naming MATLAB program/function.
- 1. Name of MATLAB function must start with a letter (alphabet).
- 2. The initial letter must be followed by letters, numbers or underscore.
- 3. The name of MATLAB function must not resemble any reserved words in MATLAB.
The given function name graph-data.m contains hyphen (which is not allowed) not an underscore. Hence, the given function name is invalid.
Conclusion:
Therefore, the function name graph-data.m is invalid.
D.

Check whether the given function name or program is valid or invalid.
Answer to Problem 1ICA
The function name help4me.m is valid.
Explanation of Solution
The given function name help4me.m meets all the criteria of rules that have to be followed for proper function name. Therefore, the given function name is valid.
Conclusion:
Therefore, the function name help4me.m is valid.
E.

Check whether the given function name or program is valid or invalid.
Answer to Problem 1ICA
The function name MATLAB is fun.m is invalid.
Explanation of Solution
Rules for naming MATLAB program/function.
- 1. Name of MATLAB function must start with a letter (alphabet).
- 2. The initial letter must be followed by letters, numbers or underscore.
- 3. The name of MATLAB function must not resemble any reserved words in MATLAB.
The given function name MATLAB is fun.m contain spacing between the words, which is not allowed. Hence, the given function name is invalid.
Conclusion:
Therefore, the function name MATLAB is fun.m is invalid.
F.

Check whether the given function name or program is valid or invalid.
Answer to Problem 1ICA
The function name matrix*matrix.m is invalid.
Explanation of Solution
Rules for naming MATLAB program/function.
- 1. Name of MATLAB function must start with a letter (alphabet).
- 2. The initial letter must be followed by letters, numbers or underscore.
- 3. The name of MATLAB function must not resemble any reserved words in MATLAB.
- 4. The name of MATLAB function should not contain any special characters like *, #, $ etc. and spacing between the words.
The given function name matrix*matrix.m contains a special character “*” which is not allowed. Hence, the given function name is invalid.
Conclusion:
Therefore, the function name matrix*matrix.m is invalid.
G.

Check whether the given function name or program is valid or invalid.
Answer to Problem 1ICA
The function name Mult2#s.m is invalid.
Explanation of Solution
Rules for naming MATLAB program/function.
- 1. Name of MATLAB function must start with a letter (alphabet).
- 2. The initial letter must be followed by letters, numbers or underscore.
- 3. The name of MATLAB function must not resemble any reserved words in MATLAB.
- 4. The name of MATLAB function should not contain any special characters like *, #, $ etc. and spacing between the words.
The given function name Mult2#s.m contains a special character “#” which is not allowed. Hence, the given function name is invalid.
Conclusion:
Therefore, the function name Mult2#s.m is invalid.
H.

Check whether the given function name or program is valid or invalid.
Answer to Problem 1ICA
The function name pi.m is invalid.
Explanation of Solution
The given function name pi.m meets all the criteria of rules that have to be followed for proper function name. Even though pi.m meets all the criteria, it’s a built-in MATLAB function, which provides the standard value as 3.14. So, it is necessary to avoid the file names, which are same as the name of standard built-in functions.
Conclusion:
Therefore, the function name pi.m is invalid.
I.

Check whether the given function name or program is valid or invalid.
Answer to Problem 1ICA
The function name ReadFile.m is valid.
Explanation of Solution
The given function name ReadFile.m meets all the criteria of rules that have to be followed for proper function name. Therefore, the given function name is valid.
Conclusion:
Therefore, the function name ReadFile.m is valid.
J.

Check whether the given function name or program is valid or invalid.
Answer to Problem 1ICA
The function name SuperCaliFragiListicExpiAliDocious.m is valid.
Explanation of Solution
The given function name SuperCaliFragiListicExpiAliDocious.m meets all the criteria of rules that have to be followed for proper function name. Therefore, the given function name is valid.
Conclusion:
Therefore, the function name SuperCaliFragiListicExpiAliDocious.m is valid.
Want to see more full solutions like this?
Chapter 17 Solutions
Thinking Like an Engineer
- Include a grapharrow_forwardA particular furnace is shaped like a section of a cone. The top surface of the furnace is uniformly heated by a resistance heater. During operation, the top surface is measured to be 800 K and the power supplied to the resistance heater is 1750 W/m². The sidewall of the furnace is perfectly insulated with ε = 0.2. If the emissivity of the top and bottom surfaces are ε = 0.5 and > = 0.7, respectively, determine the temperatures of the sidewall and the bottom surface of the furnace. A1 D₂ = 20 mm A₂ L = 50 mm D₁ = 40 mmarrow_forwardYou are designing an industrial furnace to keep pieces of sheet metal at a fixed temperature. You decide a long, hemispherical furnace will be the best choice. The hemispherical portion is built from insulating brick to reflect the radiation from a ceramic plate onto the sheet metal and the ceramic plate is heated by gas burners from below. An insulating wall prevents direct transmission of radiative energy from the ceramic plate to the sheet metal. The radius of the hemisphere is 1 m and the rest of the system properties can be found in the table below. You may neglect convection during your analysis. Temperature Emissivity Ceramic Plate 1600 K ε = 0.85 Sheet Metal 500 K Insulating Brick unknown € = 1 ε = 0.6 a) Calculate the required heat input, in W, per unit length of the furnace (out of the page) that must be supplied by the gas burners to maintain the specified temperatures. b) What is the temperature of the insulating brick surface? Metal products (2) T₂ = 500 K, &- 1 -…arrow_forward
- Derive common expressions for the radiative heat transfer rate between two surfaces below. Aσ (T-T) a) Infinite parallel plates: A1, T1 E1 912 = 1 1 + ε1 E2 1 A2, T2, E2 b) Infinitely long concentric cylinders: 912 c) Concentric spheres: 912 182 A₁σ (T-T) 1-82 (11) = 1 + ε1 E2 = A₁σ (T-T) 1 1-82 રંતુ + E2 2arrow_forwardFollowing page contains formulas.arrow_forward1) The assembly is made of the slender rods that have a mass per unit length of 3 kg/m. Determine the mass moment of inertia of the assembly about an axis perpendicular to the page and passing through point O. 0.4 m 0.8 m 0.4 marrow_forward
- answer asaparrow_forwardA radio controlled aircraft is instrumented with an airspeed sensor and a power module, which measures the airspeed V [m/s] with an uncertainty of ± 0.8 [m/s], the battery voltage E [V] with an uncertainty of ± 0.8 [V] and the current draw i with an uncertainty of ± 0.8 [A]. These sensors are used to estimate the coefficient of drag CD of the aircraft. For this purpose, the aircraft was flown under cruise condition at a constant speed, maintaining a constant altitude and the airspeed was recorded as V=10 [m/s]. A battery voltage of E=11.1 [V] and current draw i= 1[A] was also recorded. Prior to take off the weight of the aircraft was recorded using a scale as 0.8 [N] ± 0.03 [N], and the planform area S of the aircraft was found using a CAD model as 0.35 [m^2]. The air density p relevant to flight conditions was found to be p =1.225 [kg/m^3] and the propulsion efficiency was found to be 0.4. The coefficient of drag CD for cruise flight is governed by the following equation. Provide the…arrow_forwardThe structure of a house is such that it loses heat at a rate of 4500 kJ/h per °C difference between the indoors and outdoors. A heat pump that requires a power input of 5.50 kW is used to maintain this house at 24°C. Determine the lowest outdoor temperature for which the heat pump can meet the heating requirements of this house. (Include a minus sign if necessary.) The lowest outdoor temperature for which the heat pump can meet the heating requirements of this house is ________ °C.arrow_forward
- Annealing is an important step in many manufacturing processes, especially for metals. A particular manufacturing process requires annealing of a thin metallic sheet at 700°C. To accomplish this task, the sheet is placed in a large furnace, the walls of which are at approximately 730°C. An inert gas circulates through the oven to prevent oxidation of the metal. a) The metallic sheet can be approximated as diffuse, and the spectral emissivity of the sheet is shown in the figure. Determine the emissive power (W/m²) from the sheet when it is at a uniform T = 700°C. b) Determine the net rate of radiative flux (W/m²) to the metal sheet. (Note that the irradiance depends on the oven wall temperature, not the sheet temperature). 1 0.8 0.3 2.5 λ (μη) . c) The circulating inert gas comes from a reservoir and must be preheated before it flows into the furnace so that it doesn't cool the sheet too much. The anticipated convection coefficient between the sheet and the gas is h = 150 W/m² K. What…arrow_forward5. For a gauge pressure at A in the figure shown which is equal to -1.58 psi and the specific gravity of liquid B = 1.00, find the pressure at pt. B. 10.50 ft Air 11.25 ft 9.00 10.00 ft Liquid B =1.60arrow_forwardThermocouples are popular devices used to measure temperature, owing to their relatively inexpensive cost and overall accuracy. Simply taking the output of a thermocouple at face value can, however, result in significant errors. Consider measuring the temperature of hot process gas flowing through a large duct with a small thermocouple. The thermocouple surface is diffuse and gray with emissivity ε. The duct walls are known to be 400°C with total emissivity &w = 0.8. The error between the measured temperature (Ttc) and the process gas (T) is defined as AT = Ttc - To. If the true process gas temperature is T∞ = 125°C, plot the error for 5 values of the thermocouple emissivity, & = {0.1,0.3.0.5,0.7,0.9), as a function of the convection coefficient, {h | 15 5 W≤h≤ 103 W}. Comment on and explain your results. m²-K Note: When a "small" object is surrounded by "large" surroundings, the surroundings effectively behave as a black body. See sections 12.4 and 12.7 for further discussion.arrow_forward
- Refrigeration and Air Conditioning Technology (Mi...Mechanical EngineeringISBN:9781305578296Author:John Tomczyk, Eugene Silberstein, Bill Whitman, Bill JohnsonPublisher:Cengage LearningAutomotive Technology: A Systems Approach (MindTa...Mechanical EngineeringISBN:9781133612315Author:Jack Erjavec, Rob ThompsonPublisher:Cengage LearningPrecision Machining Technology (MindTap Course Li...Mechanical EngineeringISBN:9781285444543Author:Peter J. Hoffman, Eric S. Hopewell, Brian JanesPublisher:Cengage Learning
- Understanding Motor ControlsMechanical EngineeringISBN:9781337798686Author:Stephen L. HermanPublisher:Delmar Cengage LearningPrinciples of Heat Transfer (Activate Learning wi...Mechanical EngineeringISBN:9781305387102Author:Kreith, Frank; Manglik, Raj M.Publisher:Cengage LearningWelding: Principles and Applications (MindTap Cou...Mechanical EngineeringISBN:9781305494695Author:Larry JeffusPublisher:Cengage Learning





