
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
Below is a projection of the inertia ellipsoid in the b1-b2 plane (b1 and b2 are unit vectors). All points on the ellipsoid surface represent moments of inertia in various directions.
The distance R is related to the distance D such that R = md. Determine m.
Below is a projection of the inertia ellipsoid in the b1-b2 plane (b1 and b2 are unit vectors). All points on the ellipsoid surface represent moments of inertia in various directions.
Determine I_aa ( moment of inertia) for direction n_a (this is a unit vector).
The problems are generally based on the following model:
A particular spacecraft can be represented as a single axisymmetric rigid body B. Let n₂
be inertially fixed unit vectors; then, 6, are parallel to central, principal axes. To make
the mathematics simpler, introduce a frame C where n₂ = ĉ₁ = b; initially.
6₁
Assume a mass distribution such that
J =₁₁• B* •b₁ = 450 kg - m²
I = b² •Ï¾˜ • b₂ = b¸ •Ï¾* •b¸ = 200 kg - m²
K
J-I
C³ =r₁₁ = r₁₁
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
- The problems are generally based on the following model: A particular spacecraft can be represented as a single axisymmetric rigid body B. Let n₂ be inertially fixed unit vectors; then, 6, are parallel to central, principal axes. To make the mathematics simpler, introduce a frame C where n₂ = ĉ₁ = b; initially. 6₁ Assume a mass distribution such that J =₁₁• B* •b₁ = 450 kg - m² I = b² •Ï¾˜ • b₂ = b¸ •Ï¾* •b¸ = 200 kg - m² K J-I C³ =r₁₁ = r₁₁arrow_forwardThe problems are generally based on the following model: A particular spacecraft can be represented as a single axisymmetric rigid body B. Let n₂ be inertially fixed unit vectors; then, 6, are parallel to central, principal axes. To make the mathematics simpler, introduce a frame C where n₂ = ĉ₁ = b; initially. 6₁ Assume a mass distribution such that J =₁₁• B* •b₁ = 450 kg - m² I = b² •Ï¾˜ • b₂ = b¸ •Ï¾* •b¸ = 200 kg - m² K J-I C³ =r₁₁ = r₁₁arrow_forward##### Determine an example of a design of a compressed air system, which uses the criterion of speed for the design of the pipes (formula attached). The demands of flow rate, power as well as air velocity in the pipelines can be freely chosen. Sizing the compressor (flow, power...) Size reservoir required Setting the dryer Determine the amount of water withdrawn from the system due to air compression **With the attached formula you can choose the appropriate values of the unknownsarrow_forward
- To make an introduction to a report of a simple design of a compressed air system, which uses the criterion of speed, and not that of pressure drop, to determine the diameter of the pipes, where the capacity of the compressor and the demands of the equipment are expressed in flow.arrow_forwardIn an irrigation system, the following characteristics of the pipe network are available.• 100 meters of 4" PVC pipe, 3 gate valves• 500 meters of 3" PVC pipe, 4 gate valves• 200 meters of 2" H.G. pipe, 2 globe valves• 50 litres per second circulate in the pipes:Calculate:1. Total energy losses in meters.2. Leaks in pipes.3. Losses in accessories.4. Calculate the equivalent pipe of that system assuming only pipes without fittings.Solve the problem without artificial intelligence, solve by one of the expertsarrow_forwardLiquid water enters the boiler at 60 bar. Steam exits the boiler at 60 bar, 540°C and undergoes a throttling process to 40 bar before entering the turbine. Steam expands adiabatically through the turbine to 5 bar, 240°C, and then undergoes a throttling process to 1 bar before entering the condenser. Kinetic and potential energy effects can be ignored. Draw a Temperature-Entropy diagram and mark each of the states 2-5 on this diagram. Determine the power generated by the turbine, in kJ per kg of steam flowing. For the valves and the turbine, evaluate the rate of entropy production, each in kJ/K per kg of steam flowing.arrow_forward
- Find the componenets of reactions at pins of A, B and D please show the detailed process and instructions for learning draw out all diagrams please and thank youarrow_forwardA cast iron cylinder of 200 mm inner diameter and 12.5 mm thick is closely wound with a layer of 4 mm diameter steel wire under a tensile stress of 55 MN/m². Determine the stresses set up in the cylinder and steel wire if water under a pressure of 3 MN/m² is admitted in the cylinder. Take E= 100 GN/m², E = 200 GN/m² and Poisson's ratio = 0.25.arrow_forwardWhat is the effect of a clogged fuel injector?arrow_forward
- You are asked to design a unit to condense ammonia. The required condensation rate is 0.09kg/s. Saturated ammonia at 30 o C is passed over a vertical plate (10 cm high and 25 cm wide).The properties of ammonia at the saturation temperature of 30°C are hfg = 1144 ́10^3 J/kg andrho_v = 9.055 kg/m 3 . Use the properties of liquid ammonia at the film temperature of 20°C (Ts =10 o C):Pr = 1.463 rho_l= 610.2 kf/m^3 liquid viscosity= 1.519*10^-4 kg/ ms kinematic viscosity= 2.489*10^-7 m^2/s Cpl= 4745 J/kg C kl=0.4927 W/m C hfg*=hfg+0.68Cpl(Tsat-Given Ts) a) Instead of one plate you want to use small plates and install many of them. Calculate the requiredsurface temperature to achieve the desired condensation rate (0.09 kg/s) if you install 36vertical plates (with the same dimension as above: 10 cm high and 25 cm wide).arrow_forward11-19 designed in Problem The shaft shown in figure P11-4 was 10-19, for the data in the row(s) assigned from table PII-1, and the corresponding diameter of shaft found in Problem 10-19, design suitable bearings 5 E8 cycles at the load for at least State all assumptions. to support 1200rpm. (a) Using hydrodynamically lubricated bronze sleeve bearings with ON = 40, Lld = 0.8, and clearance ratio 0.0025. of a ← gear T gear Key figure PI-4 Given from the problem 10-19 we get d= 1.153 in from the table 11-1 we get a = 16 in b= 18in L= 20inarrow_forwardIn an irrigation system, the following characteristics of the pipe network are available.• 100 meters of 4" PVC pipe, 3 gate valves• 500 meters of 3" PVC pipe, 4 gate valves• 200 meters of 2" H.G. pipe, 2 globe valves• 50 litres per second circulate in the pipes:Calculate:1. Total energy losses in meters.2. Leaks in pipes.3. Losses in accessories.4. Calculate the equivalent pipe of that system assuming only pipes without fittings.Solve the problem without artificial intelligence, solve by one of the expertsarrow_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