
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
4th Edition
ISBN: 9780134639673
Author: Elizabeth A. Stephan, David R. Bowman, William J. Park, Benjamin L. Sill, Matthew W. Ohland
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 15, Problem 1ICA
Which of the following are not valid MATLAB variable names? Circle all that apply. For those that are invalid, state why.
Expert Solution & Answer

To determine
Identify the valid MATLAB variables from the given variables and explain the reason for not valid variables.
Answer to Problem 1ICA
The valid and invalid MATLAB variables are identified and explained the reason for invalid MATLAB variables.
Explanation of Solution
Description:
- a. BigNum.docx: The MATLAB variable BigNum.docx is invalid variable since it contains the special character “.”.
- b. Six_Vals: The MATLAB variable Six_Vals is a valid variable since it obeys the naming rules of the MATLAB.
- c. This is a very long MATLAB variable name: As the variable contain the space, the MATLAB variable is not a valid one.
- d. 2BR02B: The variable cannot begin with the number. As the variable begins with the number 2, the variable 2BR02B is an invalid one.
- e. Is_This_Valid?: As the variable contains the special character “?”, the variable is an invalid variable.
- f. Rocket=Space+100;: As the variable contains the special characters “=”, and “;”, the variable is an invalid variable.
- g. Mult2: The variable is a valid one.
- h. log: As the variable log is a name of common function, the variable is an invalid variable.
- i. GClefSign: The MATLAB variable GClefSign is a valid one.
- j. AbcDEFGHijKLmnopqrstuvWXyz_Has_Lots_of_Characters: The variable is a valid one.
- k. DoNotPassGo_DoNotCollect$200: As the variable contains the special character “$”, the variable is an invalid variable.
Conclusion:
Thus, the valid and invalid MATLAB variables are identified and explained the reason for invalid MATLAB variables.
Want to see more full solutions like this?
Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
1 Revolute four-bar mechanism, AB=60mm, BC=130mm, CD=140mm, AD=200mm,
CORRECT AND DETAILED HANDWRITTEN SOLUTION WITH FBD ONLY. I WILL UPVOTE THANK YOU. CORRECT ANSWER IS ALREADY PROVIDED.
The roof truss shown carries roof loads, where P = 10 kN. The truss is consisting of circular arcs top andbottom chords with radii R + h and R, respectively.Given: h = 1.2 m, R = 10 m, s = 2 m.Allowable member stresses:Tension = 250 MPaCompression = 180 MPa1. If member KL has square section, determine the minimum dimension (mm).2. If member KL has circular section, determine the minimum diameter (mm).3. If member GH has circular section, determine the minimum diameter (mm).ANSWERS: (1) 31.73 mm; (2) 35.81 mm; (3) 18.49 mm
CORRECT AND DETAILED HANDWRITTEN SOLUTION WITH FBD ONLY. I WILL UPVOTE THANK YOU. CORRECT ANSWER IS ALREADY PROVIDED.
The cantilevered spandrel beam shown whose depth tapers from d1 to d2, has a constant width of 120mm. It carries a triangularly distributed end reaction.Given: d1 = 600 mm, d2 = 120 mm, L = 1 m, w = 100 kN/m1. Calculate the maximum flexural stress at the support, in kN-m.2. Determine the distance (m), from the free end, of the section with maximum flexural stress.3. Determine the maximum flexural stress in the beam, in MPa.ANSWERS: (1) 4.630 MPa; (2) 905.8688 m; (3) 4.65 MPa
Chapter 15 Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
Ch. 15.1 - Which of the following are valid MATLAB variable...Ch. 15.1 - Which of the following assignment statements are...Ch. 15.1 - a. Store all workspace variables in the file...Ch. 15.2 - Write MATLAB code to complete the following...Ch. 15.2 - a. Calculate the two roots of the quadratic...Ch. 15.3 - Each problem should be done with a single MATLAB...Ch. 15.3 - Assume a row vector named vals has already been...Ch. 15.3 - a. Place the indices of all nonzero elements of...Ch. 15.3 - a. Create a column vector CV1 containing 123...Ch. 15.3 - Comprehension Check 15-1 0 a. Assume you have four...
Ch. 15.3 - a. Write a single MATLAB command that will create...Ch. 15.4 - a. Create the matrix CCM1=[180.34.11017] using a...Ch. 15.4 - Write single MATLAB statements to perform each of...Ch. 15.4 - Write single MATLAB statements to perform each of...Ch. 15.4 - Write single MATLAB statements to perform each of...Ch. 15.4 - Write single MATLAB statements to perform each of...Ch. 15.4 - For each of the following questions, write a...Ch. 15.5 - a. Create a variable named MTS containing the text...Ch. 15.6 - Assume a cell array named CA has three cells in a...Ch. 15.6 - Prob. 21CCCh. 15.7 - Create a structure array named Resistors...Ch. 15.7 - Use the data stored in MetalData to answer the...Ch. 15.7 - The structure array named Hdwr has the following...Ch. 15 - Which of the following are not valid MATLAB...Ch. 15 - Prob. 2ICACh. 15 - For the following questions, assume that the...Ch. 15 - For each calculation described below, write a...Ch. 15 - For each calculation described below, write a...Ch. 15 - For each of the vectors described below, write a...Ch. 15 - Assume the following vectors are already defined:...Ch. 15 - For each of the following sequences, write a...Ch. 15 - Modify the following statements so that they are...Ch. 15 - Assume you have three equal-length row vectors....Ch. 15 - Write the MATLAB code necessary to create the...Ch. 15 - For each of the following problems, write a single...Ch. 15 - Assume you have two equal-length row vectors IV1...Ch. 15 - Write the MATLAB code necessary to create the...Ch. 15 - Assuming t = [9 10; 11 12] and v = [2 4;6 8;10 12]...Ch. 15 - Determine solutions to the following problems a....Ch. 15 - For each of the following problems except part...Ch. 15 - Assume you have an N M matrix named Gonzo For...Ch. 15 - For each of the following tasks. write a single...Ch. 15 - Determine the contents of the variables created or...Ch. 15 - For each of the following tasks, write a single...Ch. 15 - For each of the following problems, write a single...Ch. 15 - Each of the following questions contains a...Ch. 15 - Prob. 25ICACh. 15 - Assume a cell array CA1 has already been defined....Ch. 15 - Prob. 27ICACh. 15 - You are setting up a structure array named client...Ch. 15 - You have three temperature values [C] stored in...Ch. 15 - You have N temperature values [C] stored in the...Ch. 15 - Assume four row vectors named Prod10, Prod11,...Ch. 15 - You have a 2 N matrix named GasData. The first...Ch. 15 - Assume the matrix M99 has at least two rows and at...Ch. 15 - Assume a matrix named Prod contains data on...Ch. 15 - You are studying the effects of climate change on...Ch. 15 - You are studying the properties of tiny spheres...Ch. 15 - Assume you have a four-column matrix named...Ch. 15 - One very old method of sending secret messages is...Ch. 15 - Prob. 13RQCh. 15 - Prob. 15RQCh. 15 - Refer to the specifications for Review Questions...
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.Similar questions
- CORRECT AND DETAILED HANDWRITTEN SOLUTION WITH FBD ONLY. I WILL UPVOTE THANK YOU. CORRECT ANSWER IS ALREADY PROVIDED. A concrete wall retains water as shown. Assume that the wall is fixed at the base. Given: H = 3 m, t = 0.5m, Concrete unit weight = 23 kN/m3Unit weight of water = 9.81 kN/m3(Hint: The pressure of water is linearly increasing from the surface to the bottom with intensity 9.81d.)1. Find the maximum compressive stress (MPa) at the base of the wall if the water reaches the top.2. If the maximum compressive stress at the base of the wall is not to exceed 0.40 MPa, what is the maximum allowable depth(m) of the water?3. If the tensile stress at the base is zero, what is the maximum allowable depth (m) of the water?ANSWERS: (1) 1.13 MPa, (2) 2.0 m, (3) 1.20 marrow_forwardCORRECT AND DETAILED HANDWRITTEN SOLUTION WITH FBD ONLY. I WILL UPVOTE THANK YOU. CORRECT ANSWER IS ALREADY PROVIDED. A short plate is attached to the center of the shaft as shown. The bottom of the shaft is fixed to the ground.Given: a = 75 mm, h = 125 mm, D = 38 mmP1 = 24 kN, P2 = 28 kN1. Calculate the maximum torsional stress in the shaft, in MPa.2. Calculate the maximum flexural stress in the shaft, in MPa.3. Calculate the maximum horizontal shear stress in the shaft, in MPa.ANSWERS: (1) 167.07 MPa; (2) 679.77 MPa; (3) 28.22 MPaarrow_forwardA counter flow double pipe heat exchanger is being used to cool hot oil from 320°F to 285°F using cold water. The water, which flows through the inner tube, enters the heat exchanger at 70°F and leaves at 175°F. The inner tube is ¾-std type L copper. The overall heat transfer coefficient based on the outside diameter of the inner tube is 140 Btu/hr-ft2-°F. Design conditions call for a total heat transfer duty (heat transfer rate between the two fluids) of 20,000 Btu/hr. Determine the required length of this heat exchanger (ft).arrow_forward
- ! Required information A one-shell-pass and eight-tube-passes heat exchanger is used to heat glycerin (cp=0.60 Btu/lbm.°F) from 80°F to 140°F by hot water (Cp = 1.0 Btu/lbm-°F) that enters the thin-walled 0.5-in-diameter tubes at 175°F and leaves at 120°F. The total length of the tubes in the heat exchanger is 400 ft. The convection heat transfer coefficient is 4 Btu/h-ft²°F on the glycerin (shell) side and 70 Btu/h-ft²°F on the water (tube) side. NOTE: This is a multi-part question. Once an answer is submitted, you will be unable to return to this part. Determine the rate of heat transfer in the heat exchanger before any fouling occurs. Correction factor F 1.0 10 0.9 0.8 R=4.0 3.0 2.0.15 1.0 0.8.0.6 0.4 0.2 0.7 0.6 R= T1-T2 12-11 0.5 12-11 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 (a) One-shell pass and 2, 4, 6, etc. (any multiple of 2), tube passes P= T₁-11 The rate of heat transfer in the heat exchanger is Btu/h.arrow_forward! Required information Air at 25°C (cp=1006 J/kg.K) is to be heated to 58°C by hot oil at 80°C (cp = 2150 J/kg.K) in a cross-flow heat exchanger with air mixed and oil unmixed. The product of heat transfer surface area and the overall heat transfer coefficient is 750 W/K and the mass flow rate of air is twice that of oil. NOTE: This is a multi-part question. Once an answer is submitted, you will be unable to return to this part. Air Oil 80°C Determine the effectiveness of the heat exchanger.arrow_forwardIn an industrial facility, a counter-flow double-pipe heat exchanger uses superheated steam at a temperature of 155°C to heat feed water at 30°C. The superheated steam experiences a temperature drop of 70°C as it exits the heat exchanger. The water to be heated flows through the heat exchanger tube of negligible thickness at a constant rate of 3.47 kg/s. The convective heat transfer coefficient on the superheated steam and water side is 850 W/m²K and 1250 W/m²K, respectively. To account for the fouling due to chemical impurities that might be present in the feed water, assume a fouling factor of 0.00015 m²-K/W for the water side. The specific heat of water is determined at an average temperature of (30 +70)°C/2 = 50°C and is taken to be J/kg.K. Cp= 4181 Water Steam What would be the required heat exchanger area in case of parallel-flow arrangement? The required heat exchanger area in case of parallel-flow arrangement is 1m².arrow_forward
- A single-pass crossflow heat exchanger is used to cool jacket water (cp = 1.0 Btu/lbm.°F) of a diesel engine from 190°F to 140°F, using air (Cp = 0.245 Btu/lbm.°F) at inlet temperature of 90°F. Both air flow and water flow are unmixed. If the water and air mass flow rates are 85500 lbm/h and 400,000 lbm/h, respectively, determine the log mean temperature difference for this heat exchanger. Assume the correction factor F to be 0.92. Air flow (unmixed) Water flow (unmixed) The log mean temperature difference of the heat exchanger is °F.arrow_forwardusing the theorem of three moments, find all the reactions and supports, I need concise calculations only. the answers are at the bottom, I need concise steps and minimal explanationsarrow_forwardIn an industrial facility, a counter-flow double-pipe heat exchanger uses superheated steam at a temperature of 155°C to heat feed water at 30°C. The superheated steam experiences a temperature drop of 70°C as it exits the heat exchanger. The water to be heated flows through the heat exchanger tube of negligible thickness at a constant rate of 3.47 kg/s. The convective heat transfer coefficient on the superheated steam and water side is 850 W/m²K and 1250 W/m²K, respectively. To account for the fouling due to chemical impurities that might be present in the feed water, assume a fouling factor of 0.00015 m² K/W for the water side. The specific heat of water is determined at an average temperature of (30+70)°C/2 = 50°C and is taken to be Cp J/kg-K. Water Steam Determine the heat exchanger area required to maintain the exit temperature of the water to a minimum of 70°C. The heat exchanger area required isarrow_forward
- Stress, ksi 160 72 150- 140 80 70 ༄ ྃ ༈ ཎྜ རྦ ༅ ཎྜ ྣཧྨ ➢ 130 120 110 100 90 2.0 2.8 3.6 4.4 5 Wire diameter, mm 6.0 6.8 2 7.6 8.4 Compression and extension springs. ASTM A227 Class II Light service Average service 0.020 0.060 0.100 0.140 0.180 0.220 0.260 0.300 0.340 0.380 0.420 0.460 0.500 Wire diameter, in Torsional stress due to initial tension, ksi 10 ४ 20 Preferred range 100 Stress, MPa 9.2 10.0 10.8 11.6 12.4 1100 1035 965 895 825 760 Severe service 690 620 550 50 150 3456789 10 11 12 13 14 15 16 Spring index, C = DJD FIGURE 18-21 Recommended torsional shear stress in an extension spring due to initial tension (Data from Associated Spring, Barnes Group, Inc.) 50 200 485 Stress, MPaarrow_forwardBolted Joint Design Bolted Frames Total Force due to door weight: P = 240 lb Number of Bolts: N = Distance to Bolt C/L: a = 4 N/A Bolt Material - Allowable shear stress of bolt material: T₂ = x Distance from Bolt centroid to bolt: x = y Distance from Bolt centroid to bolt: y = Degrees per Radian- Results y-Load on each bolt: F, = Moment resisted by bolt pattern: M = Radial distance from Bolt centroid to bolt: r = Sum squares of all radial distances: Σr² Force on each bolt to resist moment: F, - Angle for force composition: e= X-Force on each bolt to resist moment: F- y-Force on each bolt to resist moment: Fly Total y-Force on each bolt: Fy = Resultant force on bolt 1: R₁ = Required shear stress area for a bolt: A₂ = ASTM Grade A307 Steel 10,000 0 psi from Table 20-1 3.0 57.296 in degrees lb per bolt lb-in Formula FS-P/N M-Px XB r = (x² + y²)0.5 in² Σ 4r² Mr F₁ = Στ lb degrees lb lb lb Minimum Bolt Diameter: Din = Rounded up Bolt Diameter: D = 55 P. 1.5 in 2 in (3x) 1 in This bracket…arrow_forwardUniversity of Babylon Collage of Engineering/ Al-Musayab Department of Automobiles Final Examination/ Stage: 3rd Notes: Answer 4 questions only 2023-2202 Subject: Theory of vehicles Date: 2023\06\10-Saturday Time: Three Hours Course 2nd Attempt 1st Q1: A Hooke's coupling connects two shafts whose axes are inclined at 30°. The of the driven shaft? Find the maximum value of retardation or acceleration and driving shaft rotates uniformly at 600 rpm. What are the extreme angular velocities state the angle where both will occur. (12.5 Marks) Q2: Four masses, A, B, C, and D), revolve at equal radii and are equally spaced along a shaft. The mass B is 7 kg, and the radius of C and D make angles of 90° and 240°, respectively, with the radius of B. Find the magnitude of the masses A, C, and D and the angular position of A so that the system may be completely balanced. (12.5 Marks) Q3: A cam has straight worked faces that are tangential to a base circle of diameter 90 mm. The follower is a roller…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY

Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education

Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY

Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning

Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
Solids: Lesson 53 - Slope and Deflection of Beams Intro; Author: Jeff Hanson;https://www.youtube.com/watch?v=I7lTq68JRmY;License: Standard YouTube License, CC-BY