![EBK THINKING LIKE AN ENGINEER](https://www.bartleby.com/isbn_cover_images/8220103633512/8220103633512_largeCoverImage.jpg)
EBK THINKING LIKE AN ENGINEER
4th Edition
ISBN: 8220103633512
Author: OHLAND
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 16, Problem 32ICA
A novice MATLAB user created the following code with poor choice of variable names. Correct the errors and fill in the blanks provided to comment this code to determine the purpose of the code.
Main | Program Comments |
T = [30, 45, 120, 150]; | (a) % T = |
Z = 2; | (b) % Z = |
% the purpose of the function DTOR is . . . | |
(c) % | |
[W] = DTOR (T) | (d) % W = |
% The purpose of the function PCAR is . . . | |
[X, Y] = PCAR (Z, W) | (e) % |
(f) % X = | |
(g) % Y = | |
function [A] = DTOR (T) | |
A = T*2*pi/360; | |
function (P, Q) = PCAR (M, N) | |
P = M * cos (N); | |
Q = M * sin(N); | |
(h) The output of this code, when run, is _____ |
Expert Solution & Answer
![Check Mark](/static/check-mark.png)
Want to see the full answer?
Check out a sample textbook solution![Blurred answer](/static/blurred-answer.jpg)
Students have asked these similar questions
What 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 row
I need help with a MATLAB code. I need to find two values of n, one that is positive and one that is negative, that will give all negative real roots. Can you help me find them?
function [r] = find_roots(n)
% Define constants I = 400; J = 150; x = (J/I) - 1; y = n - 1; Q = y + x*(y-1);
% Define the coefficients of the quadratic equation coefficients = [1, 0, (3*x+Q^2+1), 0, (3*x*Q+Q^2)];
% Find the roots r = roots(coefficients);
end
docs.google.com/forms/d/e
نقطة واحدة
The right method to write this-6
equation in Matlab y=2sin(3t)+3e(-
* .T)
y=2sin(2t)+3exp(-pi) O
y=2*sin(2*t)+3*exp(-t)
y=2*sin(2*t)+3*exp(-pi) O
نقطة واحدة
To create black line color to plot-7
* . in matlab
you
select
('k') O
(b)
('b')
("k") O
نقطة واحدة
To make reduction for the-8
.following connection was
Chapter 16 Solutions
EBK THINKING LIKE AN ENGINEER
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
- Remaining Time: 46 minutes, 46 seconds. V Question Completion Status: A Moving to another question will save this response. Question 16 ets Which system of equations corresponds to the following augmented matrix? [1 31 1 Lo -1 b +c = 4 x + 3y = 6; -x - y = -4 -1 41 A. a + 2b = 3; b + 3c = 6; B. x + 2z = 3; C. u + 2v = 3w + 3; v + 3w = 6; v+w = -4 st D.r + 2s = 3; s + 3t = 6; -s - t = 4 O A. OC. O B. O D. A Moving to another question will save this response. «< Question earcharrow_forwardGiven: Mass = M, Radius = R, Moment of Inertia = I, Distance = H, Gravity = g, Initial timing = 0 Unknown = How long will the [delta t] process take? (time) Please keep in mind that almost every variable is unknown! We are given no numbers and are instructed to generate a solution using the variables [ "R, M, g, I and H." ] Target = Find an equation that, if we could substitute numbers, would determine how long the process would take. Newton's second law and torque seem to be relevant based on how the problem is written. * Also please show drawing based on what we are calculatingarrow_forward13. User tool frame UT[3] was set up by the programmer with three-point method for UT setup provided by FANỤC robot system. Which of the following statements is correct. (a) UT[3] frame is measured relative to UF[h] frame. (b) The orientation of UT[3] frame is the same as the orientation of default TCP frame (i.e. Def- TCP frame). (c) The origin of UT[3] frame is exactly aligned to the origin of default Def-TCP frame. 14. Using three-point method for user tool frame UT[k] setup, a robot programmer can set up the user- defined of UT[k] for an end-effector. (a) position (i.e. origin) (b) orientation (c) position (i.e. origin) and orientationarrow_forward
- хоос» 0 Python 3 (p Define a python function to determine the 2nd moment of area I, under the parabola, with respect to the centroidal-axis. The parabolic curve is defined as z = ky2, where k = b/h². The centroidal axis has a given distance d with respect to z axis. Hints: Use the parallel axis theorem. Find the 2nd moment of area against z axis first and then use the formula I₂ = I₁ + d²A to calculate I, where d is a given value (no need to derive). Note that this question requires you to derive the equation first. $ 4 l) | Idle Mem: 260.77/12288.00 MB Q F4 R y 1 1 0 do 5 [ ]: # Complete the function given the variables b,h,d and return the value as "Area","Iz" and "Ic" # This is not about numerical integration, we only need the analytical solution. # Don't change the predefined content, only fill your code in the region "YOUR CODE" Mode: Command % 9 F5 0 T . Markdown v z = ky² 2 6 C F6 Validate Y & 7 8: F7 U * 8 DII F8 I 19 F9 b O ) Ln 1, Col 1 English (United States)…arrow_forwardQ2: Write all the necessary steps to draw the following figure using relative coordinate system. For example; the draw of (L1, L2) as following > Dynamic input > of > Home> Draw> Line> 50,50>Enter>@100,0>Enter> @0,50 > Enter> and so on 100 100 100 100 A L1 L2 Start Point (50,50) 100 200 100 007 000 007arrow_forwardHW Matlab 1) Create a variable ftemp to store a temperature in degrees Fahrenheit (F). Write m-file to convert this to degrees Celsius and store the result in a variable ctemp. The conversion factor is C = (F —32) * 5/9. 2) Write m-file to generate a matrix of random integers of size 100 by 100 their values between 15 to 80. 3) Free fall of objects is given by y =5mgt? where a is the acceleration, v is the velocity, y is the distance, m is the mass of the object, g is the gravitational acceleration. Plot the distance and velocity of the object for 15 seconds after its fall from rest (y = 0). Take m = 0.2 kg.arrow_forward
- 21. The programmer uses three-point method for UT[2] setup for a sharp-tip pointer. If the programmer recorded each of three-points by precisely contacting the sharp-tip to the tip of the stationary reference pointer on the table, then (a) UT[2] setup is accurate (b) UT[2] setup is not accurate (c) the accuracy of UT[2] setup is still uncertain 22. User frame UF[3] is accurately set up on the part reference surface which is unparallel to the surface where the robot is mounted. To jog the robot TCP to move perpendicularly to the part reference surface, the programmer (a) needs to select World jogging coordinate system (b) needs to activate UF[3] and select User Frame jogging coordinate systemarrow_forward2) Given the following Matlab commands x = [8 9 11; 7 10 5] [a, b] = max (x) o What the result of the command [a, b] = max (x) ? What is a? o What is b?arrow_forward7. [-/15 Points] DETAILS LARCALC11M 2.1.038. Find an equation of the line that is tangent to the graph of f and parallel to the given line. Function Line f(x) = 2x2 4x- y + 3 = 0 y = Submit Answerarrow_forward
- The following tools / resources may be useful for you to complete the assignment:a. Chatgpt (You may use it to learn Matlab coding or any other computer language. An example is given here: https://shareg.pt/mXHGne9 ). Please take note that code generated by chatgpt can be directly copied and pasted.b. Matlabi) Useful cheat sheet (https://n.ethz.ch/~marcokre/download/ML-CheatSheet.pdf)ii) Getting started with Matlab (https://matlabacademy.mathworks.com/en/details/gettingstarted )iii) Getting 30-day Matlab trial license (https://www.mathworks.com/campaigns/products/trials.html ) iv) Polyfit (https://www.mathworks.com/help/matlab/ref/polyfit.html )v) Exponential Fit (https://www.mathworks.com/matlabcentral/answers/91159-how-do-i-fit-an-exponential-curve-to-my-data)c. PlotDigitizer (https://plotdigitizer.sourceforge.net/ ) or a free online app that does not requires installation (https://plotdigitizer.com/app )You may use your own engineering judgement to make any assumptions on any…arrow_forward2. There were 42 mangoes in each crate. 12 such crates of mangoes were delivered to a factory. 4 mangoes were rotten and had to be thrown away. The remaining mangoes were packed into boxes of 10 mangoes each. Write a numerical expression in MATLAB syntax to represent this situation and then find how many boxes of mangoes were there? OFocus 4:20 AM 28°C Mostly clear 3/26/2022 LG CVENUENS THANOS BOBBLEHEAD AMANLANTE A ON CABIA ANn POCKET YOP! AVENGES KEYCHAIN INFINITY WAR Handy Fan THANOS BOBBLE HEAD IGENA ERANLIA P COs CA ANarrow_forwardB= X+3,Z-1,L b) Two of the three direction angles of line QP are B=90 and y=90 degrees. The force F=XZV acts on line AB as shown. F XZV P First generate your data using your ID code A= X,Z-1,L F=XZV=118 A ( 1,0,8) B (4,0, 8) E(-1, 0,8 ) E(-X, Z-1, L) (i) Determine the unit vector of each line, (ii) Determine the Cartesian components of the force F=XZV, (iii) Determine the angle between the two lines, (iv) Determine the moment of F force about point E. (v) Determine the angle between line AB and the y axis.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
![Text book image](https://www.bartleby.com/isbn_cover_images/9780190698614/9780190698614_smallCoverImage.gif)
Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press
![Text book image](https://www.bartleby.com/isbn_cover_images/9780134319650/9780134319650_smallCoverImage.gif)
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON
![Text book image](https://www.bartleby.com/isbn_cover_images/9781259822674/9781259822674_smallCoverImage.gif)
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education
![Text book image](https://www.bartleby.com/isbn_cover_images/9781118170519/9781118170519_smallCoverImage.gif)
Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337093347/9781337093347_smallCoverImage.gif)
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning
![Text book image](https://www.bartleby.com/isbn_cover_images/9781118807330/9781118807330_smallCoverImage.gif)
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
Dimensional Analysis - in physics; Author: Jennifer Cash;https://www.youtube.com/watch?v=c_ZUnEUlTbM;License: Standard youtube license