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
my ID# 016948724. Please solve this problem step by step
My ID# 016948724 please find the forces for Fx=0: fy=0: fz=0: please help me to solve this problem step by step
My ID# 016948724 please solve the proble step by step find the forces fx=o: fy=0; fz=0; and find shear moment and the bending moment diagran please draw the diagram for the shear and bending moment
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
- My ID#016948724 please solve this problems and show me every step clear to follow pleasearrow_forwardMy ID# 016948724arrow_forwardPlease do not use any AI tools to solve this question. I need a fully manual, step-by-step solution with clear explanations, as if it were done by a human tutor. No AI-generated responses, please.arrow_forward
- Please do not use any AI tools to solve this question. I need a fully manual, step-by-step solution with clear explanations, as if it were done by a human tutor. No AI-generated responses, please.arrow_forwardPlease do not use any AI tools to solve this question. I need a fully manual, step-by-step solution with clear explanations, as if it were done by a human tutor. No AI-generated responses, please.arrow_forward[Q2]: The cost information supplied by the cost accountant is as follows:Sales 20,00 units, $ 10 per unitCalculate the (a/ newsale guantity and (b) new selling price to earn the sameVariable cost $ 6 per unit, Fixed Cost $ 30,000, Profit $ 50,000profit ifi) Variable cost increases by $ 2 per unitil) Fixed cost increase by $ 10,000Ili) Variable cost increase by $ 1 per unit and fixed cost reduces by $ 10,000arrow_forward
- can you please help me perform Visual Inspection and Fractography of the attatched image: Preliminary examination to identify the fracture origin, suspected fatigue striation, and corrosion evidences.arrow_forwardcan you please help[ me conduct Causal Analysis (FTA) on the scenario attatched: FTA diagram which is a fault tree analysis diagram will be used to gain an overview of the entire path of failure from root cause to the top event (i.e., the swing’s detachment) and to identify interactions between misuse, material decay and inspection errors.arrow_forwardhi can you please help me in finding the stress intensity factor using a k-calcluator for the scenario attathced in the images.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Principles of Heat Transfer (Activate Learning wi...Mechanical EngineeringISBN:9781305387102Author:Kreith, Frank; Manglik, Raj M.Publisher:Cengage Learning

Principles of Heat Transfer (Activate Learning wi...
Mechanical Engineering
ISBN:9781305387102
Author:Kreith, Frank; Manglik, Raj M.
Publisher:Cengage Learning
Thermodynamics - Chapter 3 - Pure substances; Author: Engineering Deciphered;https://www.youtube.com/watch?v=bTMQtj13yu8;License: Standard YouTube License, CC-BY