EBK MATLAB: AN INTRODUCTION WITH APPLIC
EBK MATLAB: AN INTRODUCTION WITH APPLIC
5th Edition
ISBN: 8220102007642
Author: GILAT
Publisher: YUZU
bartleby

Videos

Question
Book Icon
Chapter 8, Problem 1P
To determine

To plot:

The polynomial y=0.1x50.2x4x3+5x241.5x+235 in the domain 6x6 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.1x50.2x4x3+5x241.5x+235 is stated as follows.

Explanation of Solution

The given polynomial function is,

y=0.1x50.2x4x3+5x241.5x+235 …… (1)

The range of the function is 6x6.

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

y=0.1x50.2x4x3+5x241.5x+235=0.1(6)50.2(6)4(6)3+5(6)241.5(6)+235=156.8000

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

y=0.1x50.2x4x3+5x241.5x+235=0.1(6)50.2(6)4(6)3+5(6)241.5(6)+235=468.4000

Hence, the value of y lies from 156.8000y468.4000.

Write the MATLAB script to plot the polynomial y=0.1x50.2x4x3+5x241.5x+235 in the domain 6x6 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 = -6:0.1:6;%Define a vector x.

y = [0.1 -0.2 -1 5 -41.5 235];

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

plot(x,r)

xlabel('x')

ylabel('y')

Save the MATLAB script with the name, Chapter8_29864_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.1x50.2x4x3+5x241.5x+235 in the domain 6x6 by first creating a vector for x, next using the polyval function to calculate y, and then using the plot function.

Result:

EBK MATLAB: AN INTRODUCTION WITH APPLIC, Chapter 8, Problem 1P

Conclusion:

Therefore, the plot of the given polynomial y=0.1x50.2x4x3+5x241.5x+235 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
Solve the following LP problem using the Extreme Point Theorem: Subject to: Maximize Z-6+4y 2+y≤8 2x + y ≤10 2,y20 Solve it using the graphical method. Guidelines for preparation for the teacher's questions: Understand the basics of Linear Programming (LP) 1. Know how to formulate an LP model. 2. Be able to identify decision variables, objective functions, and constraints. Be comfortable with graphical solutions 3. Know how to plot feasible regions and find extreme points. 4. Understand how constraints affect the solution space. Understand the Extreme Point Theorem 5. Know why solutions always occur at extreme points. 6. Be able to explain how optimization changes with different constraints. Think about real-world implications 7. Consider how removing or modifying constraints affects the solution. 8. Be prepared to explain why LP problems are used in business, economics, and operations research.
ged the variance for group 1) Different groups of male stalk-eyed flies were raised on different diets: a high nutrient corn diet vs. a low nutrient cotton wool diet. Investigators wanted to see if diet quality influenced eye-stalk length. They obtained the following data: d Diet Sample Mean Eye-stalk Length Variance in Eye-stalk d size, n (mm) Length (mm²) Corn (group 1) 21 2.05 0.0558 Cotton (group 2) 24 1.54 0.0812 =205-1.54-05T a) Construct a 95% confidence interval for the difference in mean eye-stalk length between the two diets (e.g., use group 1 - group 2).
An article in Business Week discussed the large spread between the federal funds rate and the average credit card rate. The table below is a frequency distribution of the credit card rate charged by the top 100 issuers. Credit Card Rates Credit Card Rate Frequency 18% -23% 19 17% -17.9% 16 16% -16.9% 31 15% -15.9% 26 14% -14.9% Copy Data 8 Step 1 of 2: Calculate the average credit card rate charged by the top 100 issuers based on the frequency distribution. Round your answer to two decimal places.
Knowledge Booster
Background pattern image
Electrical Engineering
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering 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
Vector Components and Projections in 3-Dimensions; Author: turksvids;https://www.youtube.com/watch?v=DfIsa7ArxSo;License: Standard YouTube License, CC-BY
Linear Algebra 6.2.2 Orthogonal Projections; Author: Kimberly Brehm;https://www.youtube.com/watch?v=fqbwErsP8Xw;License: Standard YouTube License, CC-BY