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

Concept explainers

bartleby

Videos

Question
Book Icon
Chapter 8, Problem 1P
To determine

To plot:

The polynomial y=0.5x50.3x415.5x3+7x2+36x7 in the domain 4x4 by first creating a vector for x, next using the polyval function to calculate y, and then using the plot function.

Expert Solution & Answer
Check Mark

Answer to Problem 1P

Solution:

The plot of the given polynomial y=0.5x50.3x415.5x3+7x2+36x7 is stated as follows.

Explanation of Solution

The given polynomial function is,

    y=0.5x50.3x415.5x3+7x2+36x7 ............. (1)

The range of function is 4x4.

Substitute the value of x=4 in the above equation.

    y=0.5x50.3x415.5x3+7x2+36x7=0.5(4)50.3(4)415.5(4)3+7(4)2+36(4)7=45.4

Substitute the value of x=4 in equation (1).

    y=0.5x50.3x415.5x3+7x2+36x7=0.5(4)50.3(4)415.5(4)3+7(4)2+36(4)7=101.80

Hence, the value of y lies from 45.4y101.8.

Write the MATLAB script to plot the polynomial y=0.5x50.3x415.5x3+7x2+36x7 in the domain 4x4 by first creating a vector for x, next using the polyval function to calculate y, and then using the plot function.

MATLAB Code:

%MATLAB program to plot the polynomial function

x = -4:0.1:4;%Define a vector x.

y = [0.9 -0.3 -15.5 7 36 -7];

r = polyval(y,x);%polyval function is used to calculate y

plot(x,r)

Save the MATLAB script with name, Chapter8_56830_8_1P.m in the current folder. Execute the script by typing the script name at the command window to get the plot of the polynomial y=0.5x50.3x415.5x3+7x2+36x7 in the domain 4x4 by first creating a vector for x, next using the polyval function to calculate y, and then using the plot function.

Result:

Matlab, Chapter 8, Problem 1P

Conclusion:

Therefore, the plot of the given polynomial y=0.5x50.3x415.5x3+7x2+36x7 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
For each of the time​ series, construct a line chart of the data and identify the characteristics of the time series​ (that is,​ random, stationary,​ trend, seasonal, or​ cyclical). Year    Month    Rate (%)2009    Mar    8.72009    Apr    9.02009    May    9.42009    Jun    9.52009    Jul    9.52009    Aug    9.62009    Sep    9.82009    Oct    10.02009    Nov    9.92009    Dec    9.92010    Jan    9.82010    Feb    9.82010    Mar    9.92010    Apr    9.92010    May    9.62010    Jun    9.42010    Jul    9.52010    Aug    9.52010    Sep    9.52010    Oct    9.52010    Nov    9.82010    Dec    9.32011    Jan    9.12011    Feb    9.02011    Mar    8.92011    Apr    9.02011    May    9.02011    Jun    9.12011    Jul    9.02011    Aug    9.02011    Sep    9.02011    Oct    8.92011    Nov    8.62011    Dec    8.52012    Jan    8.32012    Feb    8.32012    Mar    8.22012    Apr    8.12012    May    8.22012    Jun    8.22012    Jul    8.22012    Aug    8.12012    Sep    7.82012    Oct…
For each of the time​ series, construct a line chart of the data and identify the characteristics of the time series​ (that is,​ random, stationary,​ trend, seasonal, or​ cyclical). Date    IBM9/7/2010    $125.959/8/2010    $126.089/9/2010    $126.369/10/2010    $127.999/13/2010    $129.619/14/2010    $128.859/15/2010    $129.439/16/2010    $129.679/17/2010    $130.199/20/2010    $131.79 a. Construct a line chart of the closing stock prices data. Choose the correct chart below.
For each of the time​ series, construct a line chart of the data and identify the characteristics of the time series​ (that is,​ random, stationary,​ trend, seasonal, or​ cyclical) Date    IBM9/7/2010    $125.959/8/2010    $126.089/9/2010    $126.369/10/2010    $127.999/13/2010    $129.619/14/2010    $128.859/15/2010    $129.439/16/2010    $129.679/17/2010    $130.199/20/2010    $131.79

Chapter 8 Solutions

Matlab

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