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

Concept explainers

bartleby

Videos

Question
Book Icon
Chapter 3, Problem 1P
To determine

To calculate:

The value of y in equation y =x2e0·5x+x for the following values of x using element-by-element operations: 3, 2, 1, 0, 1, 2, 3.

Expert Solution & Answer
Check Mark

Answer to Problem 1P

Solution:

The calculated values of y is 5.7769 1.6321 0.6065 1.0000 0.3513 3.2817 7.5183.

Explanation of Solution

The given values of x is 3, 2, 1, 0, 1, 2, 3.

The stated equation is,

y =x2e0·5x+x ……(1)

Substitute the value x=3 in the above equation.

y =x2e0·5x+xy=(3)2e0·5(3)+(3)=5.7769

Substitute the value x=2 in equation (1).

y =x2e0·5x+xy=(2)2e0·5(2)+(2)=1.6321

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

y =x2e0·5x+xy=(1)2e0·5(1)+(1)=0.6065

Substitute the value x=0 in equation (1).

y =x2e0·5x+xy=(0)2e0·5(0)+(0)=1.0000

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

y =x2e0·5x+xy=(1)2e0·5(1)+(1)=0.3513

Substitute the value x=2 in equation (1).

y =x2e0·5x+xy=(2)2e0·5(2)+(2)=3.2817

Substitute the value x=3 in equation (1).

y =x2e0·5x+xy=(3)2e0·5(3)+(3)=7.5183

The calculated values of y is 5.7769 1.6321 0.6065 1.0000 0.3513 3.2817 7.5183.

Write the MATLAB script that calculates the value of y in equation y =x2e0·5x+x for the following values of x using element-by-element operations: 3, 2, 1, 0, 1, 2, 3.

MATLAB Code:

x = -3:3;

% Define the variable x.

y = x.^2-exp(0.5*x)+x

% Calculate the value of the equation.

Save the MATLAB script with the name, chapter3_29864_3_1P.m in the current folder. Execute the script by typing the script name at the command window to get the answer for equation y =x2e0·5x+x for the given values of x : 3, 2, 1, 0, 1, 2, 3.

Result:

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

Conclusion:

Therefore, the calculated values of y is 5.7769 1.6321 0.6065 1.0000 0.3513 3.2817 7.5183.

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
21. ANALYSIS OF LAST DIGITS Heights of statistics students were obtained by the author as part of an experiment conducted for class. The last digits of those heights are listed below. Construct a frequency distribution with 10 classes. Based on the distribution, do the heights appear to be reported or actually measured? Does there appear to be a gap in the frequencies and, if so, how might that gap be explained? What do you know about the accuracy of the results? 3 4 555 0 0 0 0 0 0 0 0 0 1 1 23 3 5 5 5 5 5 5 5 5 5 5 5 5 6 6 8 8 8 9
A side view of a recycling bin lid is diagramed below where two panels come together at a right angle. 45 in 24 in Width? — Given this information, how wide is the recycling bin in inches?
1 No. 2 3 4 Binomial Prob. X n P Answer 5 6 4 7 8 9 10 12345678 8 3 4 2 2552 10 0.7 0.233 0.3 0.132 7 0.6 0.290 20 0.02 0.053 150 1000 0.15 0.035 8 7 10 0.7 0.383 11 9 3 5 0.3 0.132 12 10 4 7 0.6 0.290 13 Poisson Probability 14 X lambda Answer 18 4 19 20 21 22 23 9 15 16 17 3 1234567829 3 2 0.180 2 1.5 0.251 12 10 0.095 5 3 0.101 7 4 0.060 3 2 0.180 2 1.5 0.251 24 10 12 10 0.095
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
Inverse Functions; Author: Professor Dave Explains;https://www.youtube.com/watch?v=9fJsrnE1go0;License: Standard YouTube License, CC-BY