EBK MATLAB: AN INTRODUCTION WITH APPLIC
EBK MATLAB: AN INTRODUCTION WITH APPLIC
6th Edition
ISBN: 8220103113663
Author: GILAT
Publisher: YUZU
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:

EBK MATLAB: AN INTRODUCTION WITH APPLIC, 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
Find the Q-points for the diodes in the circuit. Assume ideal diodes, and startwith the assumption that D is OFF, and D2 is ON for both circuits.
please see the following image to answer questions thanks
5- Find the Eigenvalues and the corresponding Eigenvectors. [4 5 31 A=0 4 6 Lo 0 1

Chapter 8 Solutions

EBK MATLAB: AN INTRODUCTION WITH APPLIC

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
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:PEARSON
Text book image
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Electrical Engineering
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Text book image
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:9780078028229
Author:Charles K Alexander, Matthew Sadiku
Publisher:McGraw-Hill Education
Text book image
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:9780134746968
Author:James W. Nilsson, Susan Riedel
Publisher:PEARSON
Text book image
Engineering Electromagnetics
Electrical Engineering
ISBN:9780078028151
Author:Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:Mcgraw-hill Education,
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