MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
5th Edition
ISBN: 9781118629864
Author: Amos Gilat
Publisher: WILEY
bartleby

Videos

Question
Book Icon
Chapter 5, Problem 1P
To determine

To plot:

The function f(x)=x23x+72x+5 for 1x5 by using plot command.

Expert Solution & Answer
Check Mark

Answer to Problem 1P

Solution:

The plot of the function f(x)=x23x+72x+5 for 1x5 is stated as follows.

Explanation of Solution

The given function is,

f(x)=x23x+72x+5

The range of the function is 1x5.

Substitute x=1 in the above equation.

f(x)=x23x+72x+5=(1)23(1)+72(1)+5=6.3509

Substitute x=5 in the above equation.

f(x)=x23x+72x+5=(5)23(5)+72(5)+5=4.3894

The value of f(x) lies from 6.3509f(x)4.3894.

Write the MATLAB script to plot the function f(x)=x23x+72x+5 for 1x5.

MATLAB Code:

x = [-1:0.01:5];

% Define the vector x.

fx = (x.^2-3*x+7)./sqrt(2*x+5);

% Define the function fx.

plot(x,fx,'-g')

Save the MATLAB script with the name, Chapter5_29864_5_1P.m in the current folder. Execute the script by typing the script name at the command window to get the plot of the function f(x)=x23x+72x+5 for 1x5.

Result:

MATLAB: An Introduction with Applications, Chapter 5, Problem 1P

Conclusion:

The plot of the function f(x)=x23x+72x+5 for 1x5 is stated above.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
In addition to the in-school milk supplement program, the nurse would like to increase the use of daily vitamin supplements for the children by visiting homes and educating about the merits of vitamins. She believes that currently, about 50% of families with school-age children give the children a daily megavitamin. She would like to increase this to 70%. She plans a two-group study, where one group serves as a control and the other group receives her visits. How many families should she expect to visit to have 80% power of detecting this difference? Assume that drop-out rate is 5%.
A recent survey of 400 americans asked whether or not parents do too much for their young adult children. The results of the survey are shown in the data file. a) Construct the frequency and relative frequency distributions. How many respondents felt that parents do too much for their adult children? What proportion of respondents felt that parents do too little for their adult children? b) Construct a pie chart. Summarize the findings
The average number of minutes Americans commute to work is 27.7 minutes (Sterling's Best Places, April 13, 2012). The average commute time in minutes for 48 cities are as follows: Click on the datafile logo to reference the data. DATA file Albuquerque 23.3 Jacksonville 26.2 Phoenix 28.3 Atlanta 28.3 Kansas City 23.4 Pittsburgh 25.0 Austin 24.6 Las Vegas 28.4 Portland 26.4 Baltimore 32.1 Little Rock 20.1 Providence 23.6 Boston 31.7 Los Angeles 32.2 Richmond 23.4 Charlotte 25.8 Louisville 21.4 Sacramento 25.8 Chicago 38.1 Memphis 23.8 Salt Lake City 20.2 Cincinnati 24.9 Miami 30.7 San Antonio 26.1 Cleveland 26.8 Milwaukee 24.8 San Diego 24.8 Columbus 23.4 Minneapolis 23.6 San Francisco 32.6 Dallas 28.5 Nashville 25.3 San Jose 28.5 Denver 28.1 New Orleans 31.7 Seattle 27.3 Detroit 29.3 New York 43.8 St. Louis 26.8 El Paso 24.4 Oklahoma City 22.0 Tucson 24.0 Fresno 23.0 Orlando 27.1 Tulsa 20.1 Indianapolis 24.8 Philadelphia 34.2 Washington, D.C. 32.8 a. What is the mean commute time for…

Chapter 5 Solutions

MATLAB: An Introduction with Applications

Ch. 5 - Plot the function fx=x25x12x2x6 in the domain 1x7...Ch. 5 - Prob. 12PCh. 5 - Prob. 13PCh. 5 - An epicycloid is a curve (shown partly in the...Ch. 5 - The shape of the pretzel shown is given by...Ch. 5 - Prob. 16PCh. 5 - Plot an ellipse with major axes of a = 10 and b =...Ch. 5 - The following data gives the approximate...Ch. 5 - The force F (in N) acting between a particle with...Ch. 5 - Prob. 20PCh. 5 - Consider the motion of the squirrel in the...Ch. 5 - The curvilinear motion of a particle is defined by...Ch. 5 - The demand for water during a fire is often the...Ch. 5 - The position x as a function of time of a particle...Ch. 5 - The area of the aortic valve, AVin cm2, can be...Ch. 5 - A bandpass filter passes signals with frequencies...Ch. 5 - A resistor, R = 4O, and an inductor, L = 1.3 H,...Ch. 5 - In a typical tension test a dog bone shaped...Ch. 5 - According to special relativity, a rod of length L...Ch. 5 - The shape of a symmetrical four-digit NACA airfoil...Ch. 5 - The ideal gas law relates the pressure P, volume...Ch. 5 - The be vibrations of the body of a helicopter due...Ch. 5 - A railroad bumper is designed to slow down a...Ch. 5 - Consider the diode circuit shown in the figure....Ch. 5 - Prob. 35PCh. 5 - A simply supported beam is subjected to...Ch. 5 - Biological oxygen demand (BOD) is a measure of the...Ch. 5 - The temperature dependence of the diffusion...Ch. 5 - The resonant frequency f (in Hz) for the circuit...Ch. 5 - The Taylor series for cos(x) is:...
Knowledge Booster
Background pattern image
Statistics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
MATLAB: An Introduction with Applications
Statistics
ISBN:9781119256830
Author:Amos Gilat
Publisher:John Wiley & Sons Inc
Text book image
Probability and Statistics for Engineering and th...
Statistics
ISBN:9781305251809
Author:Jay L. Devore
Publisher:Cengage Learning
Text book image
Statistics for The Behavioral Sciences (MindTap C...
Statistics
ISBN:9781305504912
Author:Frederick J Gravetter, Larry B. Wallnau
Publisher:Cengage Learning
Text book image
Elementary Statistics: Picturing the World (7th E...
Statistics
ISBN:9780134683416
Author:Ron Larson, Betsy Farber
Publisher:PEARSON
Text book image
The Basic Practice of Statistics
Statistics
ISBN:9781319042578
Author:David S. Moore, William I. Notz, Michael A. Fligner
Publisher:W. H. Freeman
Text book image
Introduction to the Practice of Statistics
Statistics
ISBN:9781319013387
Author:David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:W. H. Freeman
An Introduction to Area | Teaching Maths | EasyTeaching; Author: EasyTeaching;https://www.youtube.com/watch?v=_uKKl8R1xBM;License: Standard YouTube License, CC-BY
Area of a Rectangle, Triangle, Circle & Sector, Trapezoid, Square, Parallelogram, Rhombus, Geometry; Author: The Organic Chemistry Tutor;https://www.youtube.com/watch?v=JnLDmw3bbuw;License: Standard YouTube License, CC-BY