Thinking Like an Engineer: An Active Learning Approach (3rd Edition)
3rd Edition
ISBN: 9780133593211
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 17, Problem 18ICA
Consider the following MATLAB program and function, stored in MATLAB’s Current Directory:
MyRadFunction.m clear; clc function [Out] = RadF (In1, In2, In3) Out (In1+In2)/2 + (In2+In3)/4; |
MyRadProgram.m clear; clc InVar1=1; InVar2=3; InVar3=-l; M=MyRadFunction (invar1), MyRadFunction(invar2), myradfunction(invar3); |
Fix the program and function to eliminate all of the error messages. Note that for the variables provided in the
program as InVar1, InVar2, and InVar3 , the numerical result stored in M should be 2.5.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
2) 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?
please write a matlab code
Use MATLAB please make code for this.
Chapter 17 Solutions
Thinking Like an Engineer: An Active Learning Approach (3rd Edition)
Ch. 17.1 - Prob. 1CCCh. 17.2 - What is the output when you pass in the value 10...Ch. 17.2 - Write a function named RAC that will accept two...Ch. 17 - Which of the following are not valid...Ch. 17 - Without running these code segments in MATLAB,...Ch. 17 - Prob. 3ICACh. 17 - ICA 17-4
Write a program to store the following...Ch. 17 - Write a MATLAB program to evaluate the following...Ch. 17 - Write a MATLAB program to evaluate the following...Ch. 17 - Write a MATLAB program to evaluate the following...
Ch. 17 - Prob. 8ICACh. 17 - Prob. 9ICACh. 17 - The Shockley diode equation gives the relationship...Ch. 17 - For each MATLAB code segment shown, write the...Ch. 17 - Prob. 12ICACh. 17 - A member of your team gives you the following...Ch. 17 - Prob. 14ICACh. 17 - Consider the following MATLAB program and...Ch. 17 - A novice MATLAB user created the following code...Ch. 17 - The specific gravity of gold is 19.3. Write a...Ch. 17 - An unmanned X-43A scramjet test vehicle has...Ch. 17 - A rod on the surface of Jupiters moon Callisto has...Ch. 17 - The Eco-Marathon is an annual competition...Ch. 17 - Write a program to determine the mass of oxygen...Ch. 17 - Write a program to convert a temperature provided...Ch. 17 - Write a program to determine how long, in units of...Ch. 17 - A cylindrical tank filled to a height of 25 feet...Ch. 17 - Write a MATLAB program that implements the...Ch. 17 - Write a MATLAB program that implements the...Ch. 17 - The specific gravity of gold is 19.3. Write a...Ch. 17 - An unmanned X-43A scramjet test vehicle has...Ch. 17 - Prob. 13RQCh. 17 - A cylindrical tank filled to a height of 25 feet...Ch. 17 - Write a function that implements the quadratic...Ch. 17 - Write a function that implements the Pythagorean...Ch. 17 - As part of a team investigating the effect of mass...Ch. 17 - We have made many measurements of coffee cooling...Ch. 17 - In a factory, various metal pieces are forged and...Ch. 17 - Prob. 21RQCh. 17 - Prob. 22RQCh. 17 - You have been assigned to a new project at work....Ch. 17 - You have been assigned to a new project at work....Ch. 17 - 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
- Please examine how you got answer step by step pleasearrow_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_forwardUSE 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.arrow_forward
- .arrow_forwardMULTIPLE CHOICE -The answer is one of the options below please solve carefully and circle the correct option Please write clear .arrow_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
- Problem 3 (40 points) (CCOs 1 & 3)/MatlabGrader On Canvas, you will find a Matlab function file process.p that takes as input the variable x and returns as output the result of a complicated process g (x). Copy the file into your working directory and use it as any other Matlab .m file or build-in intrinsic Matlab function (just call it using its name process). The only difference between a .p and a .m file is that the source code of the .p file is not visible. Find all roots of g(x) in the interval 0 ≤ x ≤ 10 to a tolerance in function of at least 10-10 using mySecant from problem 2. Recall that any .m or .p function file can be passed as an argument into another function by prefacing the function name by a @, e.g., @process can be passed as an argument into any Matlab function that uses a function as an input argument, for example fplot(@process,...) for plotting a function. Store all found unique roots in a column vector root, the corresponding tolerances in function in a column…arrow_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_forward21. 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_forward
- 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 wasarrow_forwardHow do I input this code for this MATLAB problem? Thanks!arrow_forwardCould 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_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
Thermodynamics - Chapter 3 - Pure substances; Author: Engineering Deciphered;https://www.youtube.com/watch?v=bTMQtj13yu8;License: Standard YouTube License, CC-BY