THINKING LIKE AN ENGINEER W/ACCESS
17th Edition
ISBN: 9781323522127
Author: STEPHAN
Publisher: PEARSON C
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 15, Problem 22ICA
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
Qu 3 Nickel (Ni) single crystal turbine blades burn less fuel at higher temperatures because blades are grown on [110] closed packed direction. Nickel (Ni) at 20°C is FCC, and has an atomic radius, R, of 0.125 nm. Draw a reduced-sphere unit cell for this crystal and draw and label the vector [I 10], starting from the origin (0, 0, 0).
a) Calculate the length of the vector [| 10] in nanometers. Express your answer in nanometers to one significant figure.
b) Calculate the linear density of Nickel in the [| 1 0] direction in [atom/nm]. Express your answer in atoms/nm to one significant figure.
show all work problems
handwritten-solutions, please!
handwritten-solutions, please!
Chapter 15 Solutions
THINKING LIKE AN ENGINEER W/ACCESS
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
- Required information An eccentric force P is applied as shown to a steel bar of 25 × 90-mm cross section. The strains at A and B have been measured and found to be εΑ = +490 μ εB=-70 μ Know that E = 200 GPa. 25 mm 30 mm 90 mm 45 mm B Determine the distance d. The distance dis 15 mm mm.arrow_forwardhandwritten-solutions, please!arrow_forwardhandwritten-solutions, please!arrow_forward
- ! Required information Assume that the couple shown acts in a vertical plane. Take M = 25 kip.in. r = 0.75 in. A B 4.8 in. M 1.2 in. [1.2 in. Determine the stress at point B. The stress at point B is ksi.arrow_forwardhandwritten-solutions, please!arrow_forwardhandwritten-solutions, please!arrow_forward
- No use chatgptarrow_forwardProblem 6 (Optional, extra 6 points) 150 mm 150 mm 120 mm 80 mm 60 mm PROBLEM 18.103 A 2.5 kg homogeneous disk of radius 80 mm rotates with an angular velocity ₁ with respect to arm ABC, which is welded to a shaft DCE rotating as shown at the constant rate w212 rad/s. Friction in the bearing at A causes ₁ to decrease at the rate of 15 rad/s². Determine the dynamic reactions at D and E at a time when ₁ has decreased to 50 rad/s. Answer: 5=-22.01 +26.8} N E=-21.2-5.20Ĵ Narrow_forwardProblem 1. Two uniform rods AB and CE, each of weight 3 lb and length 2 ft, are welded to each other at their midpoints. Knowing that this assembly has an angular velocity of constant magnitude c = 12 rad/s, determine: (1). the magnitude and direction of the angular momentum HD of the assembly about D. (2). the dynamic reactions (ignore mg) at the bearings at A and B. 9 in. 3 in. 03 9 in. 3 in. Answers: HD = 0.162 i +0.184 j slug-ft²/s HG = 2.21 k Ay =-1.1 lb; Az = 0; By = 1.1 lb; B₂ = 0.arrow_forward
- Problem 5 (Optional, extra 6 points) A 6-lb homogeneous disk of radius 3 in. spins as shown at the constant rate w₁ = 60 rad/s. The disk is supported by the fork-ended rod AB, which is welded to the vertical shaft CBD. The system is at rest when a couple Mo= (0.25ft-lb)j is applied to the shaft for 2 s and then removed. Determine the dynamic reactions at C and D before and after the couple has been removed at 2 s. 4 in. C B Mo 5 in 4 in. Note: 2 rotating around CD induced by Mo is NOT constant before Mo is removed. and ₂ (two unknowns) are related by the equation: ₂ =0+ w₂t 3 in. Partial Answer (after Mo has been removed): C-7.81+7.43k lb D -7.81 7.43 lbarrow_forwardProblem 4. A homogeneous disk with radius and mass m is mounted on an axle OG with length L and a negligible mass. The axle is pivoted at the fixed-point O, and the disk is constrained to roll on a horizontal surface. The disk rotates counterclockwise at the constant rate o₁ about the axle. (mg must be included into your calculation) (a). Calculate the linear velocity of G and indicate it on the figure. (b). Calculate ₂ (constant), which is the angular velocity of the axle OG around the vertical axis. (c). Calculate the linear acceleration ā of G and indicate it on the figure. (d). Determine the force (assumed vertical) exerted by the floor on the disk (e). Determine the reaction at the pivot O. 1 Answers: N = mg +mr(r/L)² @² |j mr w IIG C R L i+ 2L =arrow_forwardProblem 2. The homogeneous disk of weight W = 6 lb rotates at the constant rate co₁ = 16 rad/s with respect to arm ABC, which is welded to a shaft DCE rotating at the constant rate 2 = 8 rad/s. Assume the rod weight is negligible compared to the disk. Determine the dynamic reactions at D and E (ignore mg). Answers: D=-7.12ĵ+4.47k lb r-8 in. 9 in. B D E=-1.822+4.47 lb 9 in. E 12 in. 12 in. xarrow_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
Thermodynamics - Chapter 3 - Pure substances; Author: Engineering Deciphered;https://www.youtube.com/watch?v=bTMQtj13yu8;License: Standard YouTube License, CC-BY