Concept explainers
Each of the following questions contains a description of a desired result and code that was written to accomplish that goal.
For each item. state whether or not the code performs the desired task, and if not, show one way to modify the code so that it works correctly.
a. Place the three words The, red, and bee into a 1 x 3 cell array words.
b. Create a 2 × 2 cell array Name containing the values 15 and 18 in the first row, and the values –9 and –6 in the second row.
c. Place the entire lowercase Engl1sh alphabet (a through z) 1nto a one-element cell array .Alphabet.
d. Replace the top right element in the 2 × 2 cell array Name with the word BOGUS.
e. Assume the 1 × 3 cell array suff contains the 2 × 3 matrix 2 e n , the text stnng Goofball, and a 1 × 1 cell array containing the number 42. You wish to divide the value stored in the cell array in the third element of stuff (42) by 17 and place the result in the numeric scalar R.
f. Given the same cell array .stuff as described in the previous problem, you wish to delete the four letters oofb from the second element of stuff.
g. You wish to multiply the values in the top row of the first element of stuff by the values in the second row of the first element of stuff (element-wise multiply) and place the result in the numeric row
Want to see the full answer?
Check out a sample textbook solutionChapter 15 Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
- Q1: write a program to enter any text and compute its length. Q2: Design a form with a text box. Use select statement so that when user enters g, b, r and y then form colored to green, blue, red, and yellow respectively. Q3: Write a program to print multipliers of 5 (from 5 to 50)arrow_forwardDo not give answer in image and hand writingarrow_forwardI need the answers to this part, I have submitted this question twice on this site and both times received way different answers...as I am unsure which tutor to listen to, I am uploading this question for the third time and I am asking a very highly knowledgable tutor to help me solve this. If you are uncertain, please leave it for another tutor.arrow_forward
- I need these three parts answered, if you are unable to answer all three parts please leave it for another tutor to answer, thank you.arrow_forwardFill in the Blanks: Type your answer in the space provided after each item. Type in your answer/s rounded off to 2 decimal places except for whole numbers. (ex: 10.67, 28, 732.40) If your answer is 120.00 kN, just write 120 kN Do not round off values during solving. Use the store function of your calculator or its fraction if applicable. Include the units specified after your answer. Leave a space between the value and the unit. (ex: 6323.17 m, 73.10 lb-in, 100 kN)arrow_forwardYou are in an inventory management field these days. You are working for a place which works on 365 working days per year. The annual demand is 818 widgets per year. The ordering cost is $200 per order, regardless of size. The holding cost is $4 per widget per year. How many orders per year will you place? Please round your answer to the nearest integer.arrow_forward
- Posted below is a picture of a data table and a diagram of an experiment. In the experiment you rolled a marble down a ruler ramp off the end of a coffee table to observe projectiles and conservation of energy. You do 3 trials for each initial height. Each height is measured in meters. h= initial height of marble off of table Y= height of table off floor X= horizontal distance marble goes from edge of table to where it strikes the floor a) use the table to find information you need to solve for theoretical range and % of error in measured range.arrow_forwardI need problems 6 and 7 solved. I got it solved on 2 different occasions and it is not worded correctly. NOTE: Problem 1 is an example of how it should be answered. Below are 2 seperate links to same question asked and once again it was not answered correctly. 1. https://www.bartleby.com/questions-and-answers/it-vivch-print-reading-for-industry-228-class-date-name-review-activity-112-for-each-local-note-or-c/cadc3f7b-2c2f-4471-842b-5a84bf505857 2. https://www.bartleby.com/questions-and-answers/it-vivch-print-reading-for-industry-228-class-date-name-review-activity-112-for-each-local-note-or-c/bd5390f0-3eb6-41ff-81e2-8675809dfab1arrow_forwardOo.33. Subject:- Mechanical engineeringarrow_forward
- 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