Concept explainers
The following is the built-in humps function that MATLAB uses to demonstrate some of its numerical capabilities:
The humps function exhibits both fl at and steep regions over a relatively short x range. Generate values of this function at intervals of 0.1 over the range from
![Check Mark](/static/check-mark.png)
Want to see the full answer?
Check out a sample textbook solution![Blurred answer](/static/blurred-answer.jpg)
Chapter 18 Solutions
EBK NUMERICAL METHODS FOR ENGINEERS
Additional Engineering Textbook Solutions
Fundamentals of Differential Equations (9th Edition)
Advanced Engineering Mathematics
Basic Technical Mathematics
Algebra and Trigonometry
Elementary & Intermediate Algebra
- In your biomechanical testing lab, you perform a series of compression tests to determine the relationship between apparent bone density (p, units of g/cm³) and ultimate stress (ơult, units of MPa). Using the set of experimental measurements below, write an m-file to fit a power relationship of the form O uli = Ap to the data. Use the log transform method to linearize the system and data, followed by linear regression. Plot the data points and the power relationship on a single plot. Be sure to label your axes and provide a legend. Provide a printout of your m-file and a printout of the command window showing your results. Write down the best fit equation and box it. 8.76 5.25 4.26 5.51 3.88 18.45 2.09 13.72 5.42 2.17 Oult (MPa) p (g/cm³) 0.598 | 0.459 0.319 | 0.235 0.141 0.754 0.177 0.553 0.394 0.246arrow_forwardWhat is the return type of angles function in MATLAB ?arrow_forwardPlease answer questions 4,5,in matlab ,show codearrow_forward
- 2. Answer the question completely and write down the given, required and formula that had been used. Provide graph and accurate/comple solution. The value are: V- 1 X- 5 W- 7 Y- 6 Z- 8arrow_forward3. Using the trial function u¹(x) = a sin(x) and weighting function w¹(x) = b sin(x) find an approximate solution to the following boundary value problems by determining the value of coefficient a. For each one, also find the exact solution using Matlab and plot the exact and approximate solutions. (One point each for: (i) finding a, (ii) finding the exact solution, and (iii) plotting the solution) a. (U₁xx -2 = 0 u(0) = 0 u(1) = 0 b. Modify the trial function and find an approximation for the following boundary value problem. (Hint: you will need to add an extra term to the function to make it satisfy the boundary conditions.) (U₁xx-2 = 0 u(0) = 1 u(1) = 0arrow_forwardFor the following concentration expressions, indicate whether they are uniform or nonuniform and in how many dimensions (OD, 1D, 2D, or 3D), and steady or unsteady. Then for the following control volume and origin, and table of constants, use Excel or Matlab to graph profiles that show how concentration changes within the control volume and over time to a limit of 20 for the following: C(x,0,0,0), C(0,y,0,0), c(0,0,z,0) and C(0,0,0,t). On each graph, show which parameters are held constant, the CV boundaries, and the point where all four plots overlap. 20 C(x=0) 10 a 0.0001 b 0.001 20 0.01 y k 0.1 100 All of the following functions are C(space, time) and so not necessarily just x as suggested. a. C,(x)= C,(x = 0)x exp{- ax} d. C, (x) = C, (x = 0)x exp{-ax}x exp{- by² }x exp{-cz²}x exp{- kt}arrow_forward
- Fix my MATLAB code. % Define unknown quantities in x-y system % abc = Acceleration of B wrt C on beam CD in i direction % vbc = Velocity of B wrt C on beam CD in i direction % xacd = Angular acceleration of beam CD in k direction % xvcd = Angular velocity of beam CD in k direction syms abc vbc xacd xvcd; % Create Unit Vectors in x-y coordinates i = [1,0,0]; j = [0,1,0]; k = [0,0,1]; % Create Unit Vectors in X-Y coordinates (R is rotation Matrix) Theta = 150; % Angle from X-axis to x-axis R = [[cosd(Theta),-sind(Theta), 0]; ... [sind(Theta), cosd(Theta), 0]; [0, 0, 1]]; XYZ = R*[i;j;k]; I = XYZ(1,:); J = XYZ(2,:); K = XYZ(3,:); % Set known quantities for Beam AB (no slider connection). xVab = -2.5*K; % Angular Velocity of Beam AB xAab = -3*K; % Angular Acceleration of Beam AB Rba = 0.2*(cosd(135)*I + sind(135)*J ); % Vector from A to B in X-Y % Calculate velocity and acceleration of point B % due to rotation of Beam AB (no slider connection). Vb1 = cross(xVab,Rba); Ab1 =…arrow_forwardUsing MATLAB to find the maximum.arrow_forwardGiven the trasnfer function G(s) numerator and denominator coefficients for Matlab code should be: O s³+2s+1 2s4+2s²+1' the num= [1 0 2 1] and den=[2 020 1] O num=[1 2 1] and den=[2 0 2 1 1] O num=[1 2 1] and den=[2 2 1] O num=[1 0 2 1] and den=[2 2 0 1]arrow_forward
- 3. Using the trial function uh(x) = a sin(x) and weighting function wh(x) = b sin(x) find an approximate solution to the following boundary value problems by determining the value of coefficient a. For each one, also find the exact solution using Matlab and plot the exact and approximate solutions. (One point each for: (i) finding a, (ii) finding the exact solution, and (iii) plotting the solution) a. (U₁xx - 2 = 0 u(0) = 0 u(1) = 0 b. Modify the trial function and find an approximation for the following boundary value problem. (Hint: you will need to add an extra term to the function to make it satisfy the boundary conditions.) (U₁xx - 2 = 0 u(0) = 1 u(1) = 0arrow_forwardHelp 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 doublesarrow_forwardWrite MATLAB code to perform the following math expression: a) X=7, a=X+2 5 12 2 b) A= 22 L27 4 48 7arrow_forward
- 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)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780134319650/9780134319650_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781259822674/9781259822674_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781118170519/9781118170519_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337093347/9781337093347_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781118807330/9781118807330_smallCoverImage.gif)