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

Videos

Textbook Question
Book Icon
Chapter 15, Problem 21ICA

For each of the following tasks, write a single MATLAB statement to achieve that goal.

a. Create a text string named Greek that begins with Alpha, ends with omega, and has 250,000 blanks in between.

b. Assume the text string TS contains a single word. Using only a single MATLAB command, create a text string named Padded that contains the same word stored in Ts, but with a space between each character of the original word.

For example, Rabbit becomes Rabbit.

c. If N1-'5' and N2-'8' then N3=N1+N2 places the value 109 in N3. (Try it!) This is because you are actually adding the ASCII codes for the CHARACTERS '5' and '8', NOT the values 5 and 8. Write a statement that will correctly add the values represented by the characters in N1 and N2, giving a result of 13 in this specific case. This should function correctly for any single digit, non-negative integers stored in N1 and N2. HINT: Refer to Table 15-8

d. Assume that a text string TS already exists. Convert all letters in the first half of the text string to uppercase and leave the characters in the second half unchanged. You may assume there are an even number of characters in TS.

Blurred answer
Students have asked these similar questions
The cardiovascular countercurrent heat exchnager mechanism is to warm venous blood from 28 degrees C to 35 degrees C at a mass flow rate of 2 g/s. The artery inflow temp is 37 degrees C at a mass flow rate of 5 g/s. The average diameter of the vein is 5 cm and the overall heat transfer coefficient is 125 W/m^2*K. Determine the overall blood vessel length needed too warm the venous blood to 35 degrees C if the specific heat of both arterial and venous blood is constant and equal to 3475 J/kg*K.
The forces Qy=12 kNQy​=12kN and Qz=16 kNQz​=16kN act on the profile at the shear center C. Calculate: a) Shear flow at point B (2 points)b) Shear stress at point D (3 points)
Consider the feedback controlled blending system shown below, which is designed to keep theoutlet concentration constant despite potential variations in the stream 1 composition. The density of all streamsis 920 kg/m3. At the nominal steady state, the flow rates of streams 1 and 2 are 950 and 425 kg/min,respectively, the liquid level in the tank is 1.3 m, the incoming mass fractions are x1 = 0.27, x2 = 0.54. Noticethe overflow line, indicating that the liquid level remains constant (i.e. any change in total inlet flow ratetranslates immediately to the same change in the outlet flow rate). You may assume the stream 1 flowrate andthe stream 2 composition are both constant. Use minutes as the time unit throughout this problem.   d) Derive the first order process and disturbance transfer functions;Gp= Kp/(tou*s+1) and Gd=Kd/(tou*s+1) and calculate and list the values and units of the parameters. e) Using the given information, write the general forms of Gm, GIP, and Gv below(in terms of…

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
Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press
Text book image
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON
Text book image
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education
Text book image
Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY
Text book image
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning
Text book image
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
How to balance a see saw using moments example problem; Author: Engineer4Free;https://www.youtube.com/watch?v=d7tX37j-iHU;License: Standard Youtube License