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
Chapter 16.3, Problem 6CC
What is the output when you “pass in” the value 10 to the function in Example 16-8?
Assume that you want to store the result of the previous function call in a variable named Dogs. What is the command you would type in MATLAB?
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Q4/ write one command for each case: take data name is 'x' and file name is 'database'
Import data form Excel sheet to MATLAB.
1. Export data form MATLAB to Excel sheet.
2. Save data as text file.
MATLAB
3. Load data form text file.
4. Open and close file.
Matlab Code
I having a problem with my code in MATLAB. In the following code results for r is just a 1x3 matrix. Although inside the while loop r equals to multiple 1x3 matrices. I need r equal to one matrix that is of size 27032x3. So, I just need the multiple r matrices to merge together to get one big matrix. I need that matrix to retain its value outside the while loop as well.
cc=0; % set line counter
JD = 2460626.666667;
fid = fopen('tle_catalog.txt'); % load the TLE
tline2='gg';
while ischar(tline2)
cc = cc+1; % counter
name = fgets(fid);% for the ones with three lines
tline1 = fgets(fid); % collect first line of two line elements
tline2 = fgets(fid); % collect second line of two line elements
if tline2>0 % stop at the end of the file
% initialize the propagation
[satrec, startmfe, stopmfe, deltamin] ...
= twoline2rv(721, tline1, tline2, 'c', 'd');
time_JD = tline1(21:32);
yeardayhour = str2double(regexp(tline1, '(\d{2})(\d{3})(\.\d+)', 'tokens', 'once'));
dn =…
Chapter 16 Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
Ch. 16.1 - For the problem statement, list all knowns,...Ch. 16.1 - For the problem statement, list all knowns,...Ch. 16.1 - The total distance traveled from position zero by...Ch. 16.1 - The total distance traveled from position zero by...Ch. 16.2 - For the problem given in Comprehension Check 16-4,...Ch. 16.3 - What is the output when you pass in the value 10...Ch. 16.3 - Write a function named RAC that will accept two...Ch. 16.3 - For the problem given in Comprehension Check 16-4,...Ch. 16.4 - The total distance [mi] a jetliner cruising at a...Ch. 16.4 - The height of liquid in a large. bowl-shaped...
Ch. 16.4 - The height of water slowly draining from a large...Ch. 16 - Your instructor will provide you with a picture of...Ch. 16 - Describe the steps necessary to create a paper...Ch. 16 - Describe the steps necessary to create a jelly...Ch. 16 - Describe the steps necessary to cook your favorite...Ch. 16 - Describe the steps necessary to walk from your...Ch. 16 - An unmanned X-43A scramjet test vehicle has...Ch. 16 - Convert a temperature provided by the user in...Ch. 16 - Determine the mass of oxygen gas (formula: O2...Ch. 16 - Determine the length of one side of a cube of...Ch. 16 - Which of the following are not valid...Ch. 16 - Without running these code segments in MATLAB,...Ch. 16 - Prob. 12ICACh. 16 - Write a program to store the following matrices...Ch. 16 - Write a program to perform the following...Ch. 16 - Write a MATLAB program to evaluate the following...Ch. 16 - Write a MATLAB program to evaluate the following...Ch. 16 - Write a MATLAB program to evaluate the following...Ch. 16 - The Shockley diode equation gives the relationship...Ch. 16 - For each MATLAB code segment shown, write the...Ch. 16 - Prob. 20ICACh. 16 - A member of your team gives you the following...Ch. 16 - Prob. 22ICACh. 16 - Write a function named AddDiags that accepts two 3...Ch. 16 - Write a function named DiagCalcs that accepts two...Ch. 16 - The mass of several different lengths of the same...Ch. 16 - The rotational kinetic energy of a spinning object...Ch. 16 - Since the first exoplanet (a planet around a star...Ch. 16 - Consider the following MATLAB program and...Ch. 16 - A novice MATLAB user created the following code...Ch. 16 - Create an algorithm to determine the weight of a...Ch. 16 - The Eco-Marathon is an annual competition...Ch. 16 - Prob. 3RQCh. 16 - Prob. 4RQCh. 16 - The specific gravity of gold is 19.3. Write a...Ch. 16 - An unmanned X-43A scramjet test vehicle has...Ch. 16 - A rod on the surface of Jupiters moon Callisto has...Ch. 16 - The Eco-Marathon is an annual competition...Ch. 16 - Write a program to determine the mass of oxygen...Ch. 16 - Write a program to convert a temperature provided...Ch. 16 - Write a program to determine how long, in units of...Ch. 16 - A cylindrical tank filled to a height of 25 feet...Ch. 16 - Write a MATLAB program that implements the...Ch. 16 - Write a MATLAB program that implements the...Ch. 16 - The specific gravity of gold is 19.3. Write a...Ch. 16 - An unmanned X-43A scramjet test vehicle has...Ch. 16 - Prob. 17RQCh. 16 - A cylindrical tank filled to a height of 25 feet...Ch. 16 - Write a function that implements the quadratic...Ch. 16 - Write a function that implements the Pythagorean...Ch. 16 - As part of a team investigating the effect of mass...Ch. 16 - We have made many measurements of coffee cooling...Ch. 16 - In a factory, various metal pieces are forged and...Ch. 16 - Prob. 25RQCh. 16 - Prob. 26RQCh. 16 - Prob. 27RQCh. 16 - Prob. 28RQCh. 16 - Prob. 29RQCh. 16 - You have been assigned to a new project at work....Ch. 16 - You have been assigned to a new project at work....Ch. 16 - You have been assigned to a new project at work....
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
- 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.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_forwardSolve the following without the use of AI. Show all steps. Thank You!arrow_forward
- please write a matlab codearrow_forwardwrite one command for each case: take data name is 'x' and file name is 'database' Import data form Excel sheet to MATLAB. 1. Export data form MATLAB to Excel sheet. 2. Save data as text file. 3. Load data form text file. 4. Open and close file.arrow_forwardPlease follow the instructions and the requirements according to the pictures above and I kinda need the solution quickly. The language of the code is in Matlab, thank you in advance.arrow_forward
- Write MATLAB commands to compute the sine , cosine and tangent of an array of numbers between 0 and 2pi (in steps of 0.1 ) . Save the original input array and all three output arrays to a single MAT file and then clear the workspace .arrow_forwardWhat is the return type of angles function in MATLAB ?arrow_forwardUse MATLAB please make code for this.arrow_forward
- Please write a matlab code to Solve thisarrow_forward.arrow_forwardI need help with simulink. It is my first time using simulink. I am trying to make a simulink program turning on the LED on the board for 10sec for an Arduino Mega 2560. I have attached an image of what I tried to do. After I run, it just says no diagnostic. How do I know if I did this correctly or not?arrow_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
Introduction to Kinematics; Author: LearnChemE;https://www.youtube.com/watch?v=bV0XPz-mg2s;License: Standard youtube license