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
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
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
USE MATLAB
(Convolutional Code) The vector representation of a convolutional code is g1=[1 1]and g2=[1 0]. If the received sequence is 11 11 01 10, please use Viterbi Algorithm todecode it. Please show the full trellis diagram, including the updated trellis statemetrics.
Using MATLAB editor, make a script m-file which includes a header block and comments:
Utilizing the ideal gas law:
Vmol= RT/P
Calculate the molecular volume where:
R = 0.08206 L-atm/(mol-K)
P = 1.015 atm. and
T = 270 - 315 K in 5 degree increments
Make a display matrix which has the values of T in the first column and Vmol in the second column
Save the script and publish function to create a pdf file from the script in a file named "ECE105_Wk2_L1_Prep_1"
Help with the MATLAB code to do the following:
Given an audio recording of vehicles, compute Power Spectral Density, 1/3 octave band level, octave band level, A-weighted Leq, C-weighted Leq, L10 (unweighted since sample is short), L90 (unweighted since sample is short). If the measurement is made at approximately 50 ft, and that the vehicles are moving at an average of 65 mph, what is the flow rate Q? Â If instead, the noise is dominated by 1-2 motorcycles, how fast are they going?
Given-
-The data are in counts
-Calibration factor is 133 uPa/count
-Sample rate is 44100Hz. -Remember that in air the dB reference is 20 uPa
-Pwelch requires that the inputs are doubles
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
- As the potential across the resistor increased, the current through the resistor increased. If the change in current is proportional to the voltage, the data should be in a straight line and it should go through zero. In these two examples how close is the y-intercept to zero? Is there a proportional relationship between voltage and current? If so, write the equation for each run in the form potential = constant x current. (Use a numerical value for the constant.)arrow_forwardMatlab code pleasearrow_forwardFor the Following question Graph all 4 : [I just need all 4 graphs and please explain and make clean solution] Position vs time Velocity vs time Acceleration vs time Force vs time [For your convenience, I have solved the numerical solutions for the problem] (Please Look at the picture since it is much cleaner) Question : A 550 kilogram mass initially at rest acted upon by a force of F(t) = 50et Newtons. What are the acceleration, speed, and displacement of the mass at t = 4 second ? a =(50 e^t)/(550 ) [N/kg] v = ∫_0^t▒(50 e^t )dt/(550 )= v_0  +(50 e^t-50)/550=((e^t- 1))/11 x = ∫_0^t▒(e^t- 1)dt/(11 )= x_0  +(e^t- t - 1)/(11 ) a(4s)=(50*54.6)/550= 4.96[m/s^2 ] v(4s)=((e^4-1))/11= 4.87[m/s] x(4s)=((e^4- 4 - 1))/11= 4.51 [m]arrow_forward
- Find the local maximum and minimum values and saddle point(s) of the function. You are encouraged to use a calculator or computer to graph the function with a domain and viewpoint that reveals all the important aspects of the function. (Enter your answers as comma-separated lists. If an answer does not exist, enter DNE.) f(x, y) = 9 sin(x) sin(y),   −? < x < ?,   −? < y < ? local maximum value(s)    local minimum value(s)    saddle point(s) (x, y) =arrow_forwardMatlab code please or just some stepping stones to help.arrow_forwardBriefly explain each of the following block (one sentence or less)a) G96 S200 M03b) G00G42X20.0Z2.0c) G92 X59.0 Z-50.0 R-2.5 F0.25 d) G72 P10 Q20 U1.0 W0.5 F0.2arrow_forward
- In matlab codearrow_forwardwhat's mean below sentence? i couldn't understand θm=θ1-θ2lnθ1θ2=Thi-Tco-Tho-TcilnThi-TcoTho-Tci=60-55-30-20ln60-5530-20=7.2135 °Carrow_forwardUSE MATLAB AND SOLVE THIS QUESTION The ideal gas law relates the pressure P, volume V, absolute temperature T, and amount of gas n. The law is P = nRT/ V where R is the gas constant. An engineer must design a large natural gas storage tank to be expandable to maintain the pressure constant at 2.2 atm. In December when the temperature is 4°F (- 15°C), the volume of gas in the tank is 28 500 ft3 . What will the volume of the same quantity of gas be in July when the temperature is 88°F (31°C)? (Hint: Use the fact that n, R, and P  are constant in this problem. Note also that K =°C +273.2.)arrow_forward
- The title of our study is "Design and Fabrication of an Agricultural Spraying Attachment for an Autonomous Rover" we need help in the machine design part of our study, specifically Pump selection, battery selection, and center of gravity computation I already sent you the image of the rover Rover weight capacity 35 kilo grams (payload) Rover measurements: Wheel distance - 14.5 inches and 8.5 inches Rover platform size (width & length) 14.4 inches x 10.4 inches Height- 15.8 inches. Water tank selection More or less 25 liters *For tank selection we need to justify the size with the center of gravity, proving that is the maximum dimension or liters of the tank because the center of gravity will be higher making the rover prone to toppling Pump selection *Our sprayer design has two nozzles which splits using a tee splitter, we need to find the size of the pump to obtain the same discharge rate of a normal sprayer. A normal sprayer has a 12V pump and a pressure from 0.2 to 0.45 mpa…arrow_forwardA member of your team gives you the following MATLAB program. Your job is to create the function used in the program. H = 30; % height [cm] V = 50; % volume [cm^3] % calculates the radius [cm] of a cone R2 = RadiusCone(H,V);arrow_forwardUse of Infinite Sequences and Series in Problem Solving of Special Theory of Relativity. A spacecraft travels fast the earth has a greater velocity (ⱱ) which approximates the speed of light. The time (to) measured in the spacecraft is different from the time (t) measured on earth. The time difference is given, to = t √1- ⱱ 2/c2 = t (1 – ⱱ 2/c2)1/2.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
Dimensional Analysis - in physics; Author: Jennifer Cash;https://www.youtube.com/watch?v=c_ZUnEUlTbM;License: Standard youtube license