MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
6th Edition
ISBN: 9781119256830
Author: Amos Gilat
Publisher: John Wiley & Sons Inc
bartleby

Concept explainers

bartleby

Videos

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

To calculate:

The value of y in equation y=x2xx+3 for the given values of x using element-by-element operations: 0,1,2,3,4,5,6,7.

Expert Solution & Answer
Check Mark

Answer to Problem 1P

Solution:

The calculated values of y is 00.753.68.515.428624.37535.666748.3.

Explanation of Solution

The given values of x is 0,1,2,3,4,5,6,7.

The stated equation is,

    y=x2xx+3         .......(1)

Substitute the value x=0 in the above equation.

    y=x2xx+3y=000+3=0

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

    y=x2xx+3y=1211+3=0.75

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

    y=x2xx+3y=2222+3=3.6

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

    y=x2xx+3y=3233+3=8.5

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

    y=x2xx+3y=4244+3=15.4286

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

    y=x2xx+3y=5255+3=24.375

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

    y=x2xx+3y=6266+3=35.6667

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

    y=x2xx+3y=7277+3=48.3

The calculated values of y is 00.753.68.515.428624.37535.666748.3.

Write the MATLAB script that calculates the equation y=x2xx+3 for the given values of x

: 0,1,2,3,4,5,6,7.

MATLAB Code:

x = [0:7]

% Define the variable x.

y = x.^2-(x)./(x+3)

% Calculate the value of the equation.

Save the MATLAB script with name, chapter3_56830_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=x2xx+3 for the given values of x

: 0,1,2,3,4,5,6,7.

Result:

MATLAB: An Introduction with Applications, Chapter 3, Problem 1P

Conclusion:

Therefore, the calculated values of y is 00.753.68.515.428624.37535.666748.3.

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
08:34 ◄ Classroom 07:59 Probs. 5-32/33 D ا. 89 5-34. Determine the horizontal and vertical components of reaction at the pin A and the normal force at the smooth peg B on the member. A 0,4 m 0.4 m Prob. 5-34 F=600 N fr th ar 0. 163586 5-37. The wooden plank resting between the buildings deflects slightly when it supports the 50-kg boy. This deflection causes a triangular distribution of load at its ends. having maximum intensities of w, and wg. Determine w and wg. each measured in N/m. when the boy is standing 3 m from one end as shown. Neglect the mass of the plank. 0.45 m 3 m
Examine the Variables: Carefully review and note the names of all variables in the dataset. Examples of these variables include: Mileage (mpg) Number of Cylinders (cyl) Displacement (disp) Horsepower (hp) Research: Google to understand these variables. Statistical Analysis: Select mpg variable, and perform the following statistical tests. Once you are done with these tests using mpg variable, repeat the same with hp Mean Median First Quartile (Q1) Second Quartile (Q2) Third Quartile (Q3) Fourth Quartile (Q4) 10th Percentile 70th Percentile Skewness Kurtosis Document Your Results: In RStudio: Before running each statistical test, provide a heading in the format shown at the bottom. “# Mean of mileage – Your name’s command” In Microsoft Word: Once you've completed all tests, take a screenshot of your results in RStudio and paste it into a Microsoft Word document. Make sure that snapshots are very clear. You will need multiple snapshots. Also transfer these results to the…
Examine the Variables: Carefully review and note the names of all variables in the dataset. Examples of these variables include: Mileage (mpg) Number of Cylinders (cyl) Displacement (disp) Horsepower (hp) Research: Google to understand these variables. Statistical Analysis: Select mpg variable, and perform the following statistical tests. Once you are done with these tests using mpg variable, repeat the same with hp Mean Median First Quartile (Q1) Second Quartile (Q2) Third Quartile (Q3) Fourth Quartile (Q4) 10th Percentile 70th Percentile Skewness Kurtosis Document Your Results: In RStudio: Before running each statistical test, provide a heading in the format shown at the bottom. “# Mean of mileage – Your name’s command” In Microsoft Word: Once you've completed all tests, take a screenshot of your results in RStudio and paste it into a Microsoft Word document. Make sure that snapshots are very clear. You will need multiple snapshots. Also transfer these results to the…

Chapter 3 Solutions

MATLAB: An Introduction with Applications

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
Inverse Functions; Author: Professor Dave Explains;https://www.youtube.com/watch?v=9fJsrnE1go0;License: Standard YouTube License, CC-BY