
Thinking Like an Engineer: An Active Learning Approach (3rd Edition)
3rd Edition
ISBN: 9780133593211
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 16, Problem 7ICA
For each of the following problems, write a single MATLAB statement that will accomplish the stated purpose. Assume a text string TS1 has already been defined.
- a. Create a
vector LetLoc with the same number of elements as TS1. For each element of TS1 that is alphabetic, the corresponding element of LetLoc should equal 1. All other elements of LetLoc should be 0. Example: TS1='%@3Gb6* returns LetLoc=[0 o o l l 0] - b. Create a vector Alphas that has the numeric positions of all alphabetic characters in TS1. Example: TS1 ='%@3Gb6' returns Aiphas=[4 5]
- c. Place the numeric index of the first alphabetic character in tsi into Aiphai. Example: TS1 ='%@3Gb6' returns Aiphai=4
- d. Place the last alphabetic character in TS1 into LastLetter. Example: TS1 ='%@3Gb6' LastLetter=b
- e. Find all occurrences of the string @3G in string tsi and place the locations of the first character of each such substring (@) into str3G. Example: TS1='%@3Gb6kl@3G9@33G’ returns Str3G=[2 9]
Expert Solution & Answer

Want to see the full answer?
Check out a sample textbook solution
Students have asked these similar questions
state is
Derive an expression for the volume expansivity of a substance whose equation of
RT
P
=
v-b
a
v(v + b)TZ
where a and b are empirical constants.
For a gas whose equation of state is P(v-b)=RT, the specified heat difference Cp-Cv
is equal to which of the following (show all work):
(a) R
(b) R-b
(c) R+b
(d) 0
(e) R(1+v/b)
of state is
Derive an expression for the specific heat difference of a substance whose equation
RT
P
=
v-b
a
v(v + b)TZ
where a and b are empirical constants.
Chapter 16 Solutions
Thinking Like an Engineer: An Active Learning Approach (3rd Edition)
Ch. 16.1 - Prob. 1CCCh. 16.1 - Which of the following assignment statements are...Ch. 16.2 - Write MATLAB code to complete the following...Ch. 16.2 - Prob. 4CCCh. 16.3 - Each problem should be done with a single MATLAB...Ch. 16.3 - Assume a row vector named vals has already been...Ch. 16.3 - Comprehension Check 15-1 0 a. Assume you have four...Ch. 16.3 - a. Write a single MATLAB command that will create...Ch. 16.4 - a. Create the matrix CCM1=[180.34.11017] using a...Ch. 16.4 - Prob. 10CC
Ch. 16.5 - a. Create a variable named MTS containing the text...Ch. 16.6 - Assume a cell array named CA has three cells in a...Ch. 16.6 - Prob. 14CCCh. 16.7 - Create a structure array named Resistors...Ch. 16.7 - Use the data stored in MetalData to answer the...Ch. 16.8 - a. Store all workspace variables in the file...Ch. 16 - Which of the following are not valid MATLAB...Ch. 16 - Prob. 2ICACh. 16 - Write the MATLAB code necessary to create the...Ch. 16 - Assuming t = [9 10; 11 12] and v = [2 4;6 8;10 12]...Ch. 16 - Prob. 5ICACh. 16 - For each of the following problems, write a single...Ch. 16 - For each of the following problems, write a single...Ch. 16 - Prob. 9ICACh. 16 - Assume four row vectors named Prod10, Prod11,...Ch. 16 - Assume a matrix named Prod contains data on...Ch. 16 - Prob. 5RQCh. 16 - 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
- Temperature may alternatively be defined as T = ди v Prove that this definition reduces the net entropy change of two constant-volume systems filled with simple compressible substances to zero as the two systems approach thermal equilibrium.arrow_forwardUsing the Maxwell relations, determine a relation for equation of state is (P-a/v²) (v−b) = RT. Os for a gas whose av Tarrow_forward(◉ Homework#8arrow_forwardHomework#8arrow_forwardBox A has a mass of 15 kilograms and is attached to the 20 kilogram Box B using the cord and pulley system shown. The coefficient of kinetic friction between the boxes and surface is 0.2 and the moment of inertia of the pulley is 0.5 kg * m^ 2. After 2 seconds, how far do the boxes move? A бро Barrow_forwardBox A has a mass of 15 kilograms and is attached to the 20 kilogram Box B using the cord and pulley system shown. The coefficient of kinetic friction between the boxes and surface is 0.2 and the moment of inertia of the pulley is 0.5 kg * m^2. Both boxes are 0.25 m long and 0.25 m high. The cord is attached to the bottom of Box A and the middle of box B. After 2 seconds, how far do the boxes move? A From бро Barrow_forwardHomework#8arrow_forwardSign in PDF Lecture W09.pdf PDF MMB241 - Tutorial L9.pdf File C:/Users/KHULEKANI/Desktop/mmb241/MMB241%20-%20Tutorial%20L9.pdf II! Draw | I│Alla | Ask Copilot + of 4 D Topic: Kinetics of Particles: - Forces in dynamic system, Free body diagram, newton's laws of motion, and equations of motion. TQ1. The 10-kg block is subjected to the forces shown. In each case, determine its velocity when t=2s if v 0 when t=0 500 N F = (201) N 300 N (b) TQ2. The 10-kg block is subjected to the forces shown. In each case, determine its velocity at s-8 m if v = 3 m/s at s=0. Motion occurs to the right. 40 N F = (2.5 s) N 200 N 30 N (b) TQ3. Determine the initial acceleration of the 10-kg smooth collar. The spring has an unstretched length of 1 m. 1 σ Q ☆ Q 6 ا الى ☑arrow_forwardSign in PDF Lecture W09.pdf PDF MMB241 - Tutorial L9.pdf File C:/Users/KHULEKANI/Desktop/mmb241/MMB241%20-%20Tutorial%20L9.pdf II! Draw | I│Alla | Ask Copilot + 4 of 4 | D TQ9. If motor M exerts a force of F (10t 2 + 100) N determine the velocity of the 25-kg crate when t kinetic friction between the crate and the plane are μs The crate is initially at rest. on the cable, where t is in seconds, 4s. The coefficients of static and 0.3 and μk = 0.25, respectively. M 3 TQ10. The spring has a stiffness k = 200 N/m and is unstretched when the 25-kg block is at A. Determine the acceleration of the block when s = 0.4 m. The contact surface between the block and the plane is smooth. 0.3 m F= 100 N F= 100 N k = 200 N/m σ Q Q ☆ ا الى 6 ☑arrow_forwardmy ID# is 016948724 please solve this problem step by steparrow_forwardMY ID#016948724 please solve the problem step by spetarrow_forward1 8 4 For the table with 4×4 rows and columns as shown Add numbers so that the sum of any row or column equals .30 Use only these numbers: .1.2.3.4.5.6.10.11.12.12.13.14.14arrow_forwardarrow_back_iosSEE MORE QUESTIONSarrow_forward_iosRecommended 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 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 EducationControl 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
Thermodynamics - Chapter 3 - Pure substances; Author: Engineering Deciphered;https://www.youtube.com/watch?v=bTMQtj13yu8;License: Standard YouTube License, CC-BY