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
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
thumb_up100%
Chapter 15, Problem 8ICA
For each of the following sequences, write a single MATLAB statement that will place that sequence in the stated variable.
a. Place the sequence 10-150, 10-147, 10-144, ... , 10147, 10150 into the row
b. Create a row vector P2 that contains all powers of 2 from 2°=1 to 264 = 1.844674407370955 × 1019
c. Create a column vector Tanseq that contains the tangents of all angles from 0 to 2π radians by increments of 0.01 π radians.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
MULTIPLE CHOICE -The answer is one of the options below please solve carefully and circle the correct option Please write clear .
I created a MATLAB code to plot the orbit of a satellite at an altitude of 300 km (LEO). I wanted to propagate my code for 2 revolutions but instead I used (180*60) because it takes 90 minutes to make a full rotation around the earth in LEO. Is that correct? Also, if I wanted to use revolutions how would I propagate it for 2 revs? Would my t = [0 4*pi].
Q4: Create a Visual Basic Project to find the value of the following series:
h? h4 h3
cos(h) = h –
2!
3!
4!
Write the code program so that the value of angle (h) is entered into inputbox.
Estimate the value of series (cos(h)) so that the absolute value of any term is
greater or equal to 10-6. Display the required number of terms (N) which it used in
this series in a text box and display the result of series (cos(h)) in another separate
text box.
Chapter 15 Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
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
- The Pascal triangle can be displayed as elements in a lower-triangular matrix as shown on the right. Write a MATLAB program that creates a n × n matrix that displays n rows of Pascal’s triangle. Use the program to create 4 and 7 rows Pascal’s triangles. (One way to calculate the value of the elements in the lower portion of the matrix isarrow_forwardQuestion 4 List the steps in details to draw the shape below using AutoCAD commands 190 220 50 -90 - 50 114 81 R80 450 122 -R125 68 65 290 50 290 630arrow_forwardMatlab Codearrow_forward
- Could you please fix my code it’s supposed to look like the graph that’s on the picture. But the lines do not cross eachother at the beginning. Could you make the lines look like the lines on the graph? Use this code in MATLAB and fix it. % Sample data for Diesel and Petrol cars carPosition = linspace(1, 60, 50); % Assumed positions of cars % Define your seed here seed = 50; rand('seed',seed); % Set the seed for reproducibility % Assumed CO2 emissions for Diesel and Petrol CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol % Fit polynomial curves with a reduced degree of 2 pDiesel = polyfit(carPosition, CO2Diesel, 2); pPetrol = polyfit(carPosition, CO2Petrol, 2); % Generate points for best fit lines fitDiesel = polyval(pDiesel, carPosition); fitPetrol = polyval(pPetrol, carPosition); % Plotting the data figure; hold on; % Plot Diesel best fit line…arrow_forwardI need help with the purple line the line that you see one the graph on the picture needs to be on the graph. Use this code to add the purple line and make sure it’s crossing the orange line. Please make sure the lines are positioned the same way it is shown on the picture with the graph. Use this code on MATLAB and add the purple line. % Sample data for Diesel and Petrol cars carPosition = linspace(1, 60, 50); % Assumed positions of cars % Use the 'seed' function instead of 'rng' seed = 50; % Define your seed here rand('seed',seed); % Assumed CO2 emissions for Diesel and Petrol CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol % Fit polynomial curves with a reduced degree of 2 pDiesel = polyfit(carPosition, CO2Diesel, 2); pPetrol = polyfit(carPosition, CO2Petrol, 2); % Generate points for best fit lines fitDiesel = polyval(pDiesel, carPosition);…arrow_forwardWhat is the error in the following code: x=[1:1:10]; y=[ 21 33 4 56 77 88 990 ; semilogy (x, y,'r--'); vectors must be the same lengths can't draw by semilogy x in not a vector there is no any error matlab (w = [1 0-9; 2 -2 0; 1 2 3]; ). What is the value of x(2,1) ? undefined O 2 O the whole second rowarrow_forward
- Please examine how you got answer step by step pleasearrow_forwardI wanted to create two spheres that overlap each other in MATLAB. The image has my code and results. I only see one sphere in the results. Why is that? Can you give me the code that will create two overlaying spheres in one plot?arrow_forward2 3 4 5 6 1. (Make a MatLab code) Using for loop, write a script that will generate the all following multiplication table at once: 4 6 8 10 12 5 7 9 11 10 14 18 22 10 13 16 20 26 32 17 21 34 42 26 52arrow_forward
- Problem 04 Datal 3 7 5 7 3 Data 2 -7 4 7 -9 7 8 4 3 Data 3 Store the data in a 3x8 array (use variable name data), where each row is storing the corresponding set of row data ('Datal', 'Data2', or 'Data3'). Show how to do the following analysis by hand calculation and using MATLAB commands (write down the command and the result). 4 -9 1 1 5 6 a. Mean of each row of data: b. Mean of each column of data: c. The median of each row of data: d. The standard deviation of each row of data: e. The variance of each row of data:arrow_forwardHi I need help to make the line change into a different color, I half of the line to be orange and I need the other half of the line towards the end to be purple as shown in the picture. Also I need there be a box saying Diesel, petrol, diesel best fit, petrol best fit. This part is also shown in the graph. Please use this code and fix it in MATLAB: % Sample data for Diesel and Petrol cars carPosition = linspace(1, 60, 50); % Assumed positions of cars % Fix the random seed for reproducibility rng(50); % Assumed positions of cars CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol % Fit polynomial curves pDiesel = polyfit(carPosition, CO2Diesel, 3); pPetrol = polyfit(carPosition, CO2Petrol, 3); % Generate points for best fit lines fitDiesel = polyval(pDiesel, carPosition); fitPetrol = polyval(pPetrol, carPosition); % Combine the best fit lines combinedFit =…arrow_forwardCan you write me a program manuscript using geometric definition on FAPT language. The starting point is P1 and starts where the blue dot is. P1 = 0,0arrow_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
The Robot Revolution: The New Age of Manufacturing | Moving Upstream; Author: Wall Street Journal;https://www.youtube.com/watch?v=HX6M4QunVmA;License: Standard Youtube License