Thinking Like an Engineer: An Active Learning Approach (4th Edition)
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
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
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.

Chapter 15, Problem 1ICA, Which of the following are not valid MATLAB variable names? Circle all that apply. For those that

Expert Solution & Answer
Check Mark
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:

  1. a. BigNum.docx: The MATLAB variable BigNum.docx is invalid variable since it contains the special character “.”.
  2. b. Six_Vals: The MATLAB variable Six_Vals is a valid variable since it obeys the naming rules of the MATLAB.
  3. c. This is a very long MATLAB variable name: As the variable contain the space, the MATLAB variable is not a valid one.
  4. d. 2BR02B: The variable cannot begin with the number. As the variable begins with the number 2, the variable 2BR02B is an invalid one.
  5. e. Is_This_Valid?: As the variable contains the special character “?”, the variable is an invalid variable.
  6. f. Rocket=Space+100;: As the variable contains the special characters “=”, and “;”, the variable is an invalid variable.
  7. g. Mult2: The variable is a valid one.
  8. h. log: As the variable log is a name of common function, the variable is an invalid variable.
  9. i. GClefSign: The MATLAB variable GClefSign is a valid one.
  10. j. AbcDEFGHijKLmnopqrstuvWXyz_Has_Lots_of_Characters: The variable is a valid one.
  11. 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
A long (into the page) duct with three walls is shown in the figure below. A constant rate of energy (q = 5000 W) is supplied to the backside of the bottom wall. All this power leaves surface 1 as radiative heat flow into the duct (i.e., participates in radiative exchange with surfaces 2 and 3). The backside of Surface 2 is perfectly insulated. The table below lists geometric and radiative properties of each surface. Calculate T3- 2 Surface T [K] ε AiFij, [m²] 1 700 1 A1F12 = 0.18 2 3 1 A2F23 = 0.86 1 A3 F31 = 0.36
Shaft 1 is the motor shaft and rotates at 1160 rpm. Calculate the transmission ratio and the angular velocity of output shaft 6. Na=18Nb=34Nc=20Nd=62Ne=30Nf=60Ng=2 (worm gear)Nh=40Nı=16Nj=88
The power transmission system shown in the figure includes a helical and a bevel gear. The shaft is supported by two bearings and rotates at 600 rpm. The load on the bevel gear is -0.5Pi - 0.41Pj + 0.44Pk. The axial load on the shaft is carried by the bearing on the left. For a lifespan of 36,000 hours and 98% reliability, select two identical single-row tapered roller bearings.

Chapter 15 Solutions

Thinking Like an Engineer: An Active Learning Approach (4th Edition)

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
Background pattern image
Mechanical Engineering
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
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Principles of Heat Transfer (Activate Learning wi...
Mechanical Engineering
ISBN:9781305387102
Author:Kreith, Frank; Manglik, Raj M.
Publisher:Cengage Learning
Text book image
Refrigeration and Air Conditioning Technology (Mi...
Mechanical Engineering
ISBN:9781305578296
Author:John Tomczyk, Eugene Silberstein, Bill Whitman, Bill Johnson
Publisher:Cengage Learning
Text book image
International Edition---engineering Mechanics: St...
Mechanical Engineering
ISBN:9781305501607
Author:Andrew Pytel And Jaan Kiusalaas
Publisher:CENGAGE L
Text book image
Automotive Technology: A Systems Approach (MindTa...
Mechanical Engineering
ISBN:9781133612315
Author:Jack Erjavec, Rob Thompson
Publisher:Cengage Learning
Text book image
Precision Machining Technology (MindTap Course Li...
Mechanical Engineering
ISBN:9781285444543
Author:Peter J. Hoffman, Eric S. Hopewell, Brian Janes
Publisher:Cengage Learning
Text book image
Welding: Principles and Applications (MindTap Cou...
Mechanical Engineering
ISBN:9781305494695
Author:Larry Jeffus
Publisher:Cengage Learning
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