Matlab
Matlab
6th Edition
ISBN: 9781119299257
Author: Amos Gilat
Publisher: WILEY CONS
bartleby

Concept explainers

bartleby

Videos

Question
100%
Book Icon
Chapter 5, Problem 1P
To determine

To plot:

The function f(x)=x210x+2 for 0x5 by using plot command.

Expert Solution & Answer
Check Mark

Answer to Problem 1P

Solution:

The plot of the function f(x)=x210x+2 for 0x5 is stated as follows.

Explanation of Solution

The given function is,

    f(x)=x210x+2

The range of function is 0x5.

Substitute x=0 in the above equation.

    f(x)=x210x+2=(0)210(0)+2=+2 <

Substitute x=5 in the above equation.

    f(x)=x210x+2=(5)210(5)+2=4.6393

    The value of f(x) lies from 2f(x)4.6393.

    Write the MATLAB script to plot the function f(x)=x210x+2 for 0x5.

    MATLAB Code:

    x = [0:0.01:5];

    % Define the vector x.

    y = x.^2-(10*sqrt(x))+2;

    % Define the function y.

    plot(x,y,'-g')

    Save the MATLAB script with name, Chapter5_56830_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)=x210x+2 for 0x5.

    Result:

    Matlab, Chapter 5, Problem 1P

    Conclusion:

    The plot of the function f(x)=x210x+2 for 0x5 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
https://www.hawkeslearning.com/Statistics/dbs2/datasets.html
NC Current Students - North Ce X | NC Canvas Login Links - North ( X Final Exam Comprehensive x Cengage Learning x WASTAT - Final Exam - STAT → C webassign.net/web/Student/Assignment-Responses/submit?dep=36055360&tags=autosave#question3659890_9 Part (b) Draw a scatter plot of the ordered pairs. N Life Expectancy Life Expectancy 80 70 600 50 40 30 20 10 Year of 1950 1970 1990 2010 Birth O Life Expectancy Part (c) 800 70 60 50 40 30 20 10 1950 1970 1990 W ALT 林 $ # 4 R J7 Year of 2010 Birth F6 4+ 80 70 60 50 40 30 20 10 Year of 1950 1970 1990 2010 Birth Life Expectancy Ox 800 70 60 50 40 30 20 10 Year of 1950 1970 1990 2010 Birth hp P.B. KA & 7 80 % 5 H A B F10 711 N M K 744 PRT SC ALT CTRL
Harvard University California Institute of Technology Massachusetts Institute of Technology Stanford University Princeton University University of Cambridge University of Oxford University of California, Berkeley Imperial College London Yale University University of California, Los Angeles University of Chicago Johns Hopkins University Cornell University ETH Zurich University of Michigan University of Toronto Columbia University University of Pennsylvania Carnegie Mellon University University of Hong Kong University College London University of Washington Duke University Northwestern University University of Tokyo Georgia Institute of Technology Pohang University of Science and Technology University of California, Santa Barbara University of British Columbia University of North Carolina at Chapel Hill University of California, San Diego University of Illinois at Urbana-Champaign National University of Singapore McGill…

Chapter 5 Solutions

Matlab

Ch. 5 - A plot of an astroid is shown in the figure on the...Ch. 5 - Make the plot of the astroid that is shown in the...Ch. 5 - Plot the function f(x)=x26x+7x38 in the domain 0x4...Ch. 5 - Plot the function f(x)=x+1x21 for 4x4 . Notice...Ch. 5 - Prob. 15PCh. 5 - The shape of the pretzel shown is given by the...Ch. 5 - Prob. 17PCh. 5 - Make a polar of the function: =n135.7 r=n for n=1,...Ch. 5 - Prob. 19PCh. 5 - Plot two ellipses is one figure (shown). The...Ch. 5 - The following data gives the height (in inches) of...Ch. 5 - The volage Vc t second after closing the switch in...Ch. 5 - The force F (in N) acting between a particle with...Ch. 5 - The curvilinear motion of a particle is defined by...Ch. 5 - The height and speed of a projectile shoot at a...Ch. 5 - The position x as a function of time of a particle...Ch. 5 - According to Planck’s law of black- body...Ch. 5 - A high-pass 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 - A railroad bumper is designed to slow down a...Ch. 5 - The ideal gas equation states that PVRT=n, where P...Ch. 5 - Two sound waves of slightly different frequencies...Ch. 5 - Consider the diode circuit shown in the figure....Ch. 5 - A monochromatic light that passes through a double...Ch. 5 - A simply supported beam is loaded as shown. The...Ch. 5 - Biological oxygen demand (BOD) is a measure of the...Ch. 5 - The shape of a asymmetric four-digitseries NACA...Ch. 5 - The Taylor series expansion for sin2x 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
Points, Lines, Planes, Segments, & Rays - Collinear vs Coplanar Points - Geometry; Author: The Organic Chemistry Tutor;https://www.youtube.com/watch?v=dDWjhRfBsKM;License: Standard YouTube License, CC-BY
Naming Points, Lines, and Planes; Author: Florida PASS Program;https://www.youtube.com/watch?v=F-LxiLSSaLg;License: Standard YouTube License, CC-BY