Plot the graphs of x, x, x, x, and x over the interval [0, 1] within...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Plot the graphs of x, x³, x, x², and x over the interval [0, 1] within the same figure window using 2000 points as follows. ▪ Generate the domain in a vector x. ■ Plot the graphs of x, x³, x, x7, and x with the aid of the vector x. ▪ Give the legends to the graphs. ▪ Give the title 'odd powers of x' to the plot. ▪ Label the x- and the y-axes using 'x' and 'y'. You may have to run the pretest more than once even if your plot is correct. Your plot should look as follows: 0.9 0.8 0.7 0.6 ➤0.5 0.4 0.3 0.2 0.1 0 0 0.1 0.2 0.3 odd powers of x 0.4 0.5 X 0.6 0.7 L 0.8 0.9 1 Script 1 % Generate the vector x. 2 W N 3 4% Plot the graphs of the polynomials. 5 clf; 567 8 9 10 11 12 % Write your code before this comment. 13 14 % Save the figure for assessment purpose. 15 saveas (figure (1), 'figure', 'jpg'); 16 fig imread('figure.jpg'); 17 Plot the graphs of x, x³, x, x², and x over the interval [0, 1] within the same figure window using 2000 points as follows. ▪ Generate the domain in a vector x. ■ Plot the graphs of x, x³, x, x7, and x with the aid of the vector x. ▪ Give the legends to the graphs. ▪ Give the title 'odd powers of x' to the plot. ▪ Label the x- and the y-axes using 'x' and 'y'. You may have to run the pretest more than once even if your plot is correct. Your plot should look as follows: 0.9 0.8 0.7 0.6 ➤0.5 0.4 0.3 0.2 0.1 0 0 0.1 0.2 0.3 odd powers of x 0.4 0.5 X 0.6 0.7 L 0.8 0.9 1 Script 1 % Generate the vector x. 2 W N 3 4% Plot the graphs of the polynomials. 5 clf; 567 8 9 10 11 12 % Write your code before this comment. 13 14 % Save the figure for assessment purpose. 15 saveas (figure (1), 'figure', 'jpg'); 16 fig imread('figure.jpg'); 17
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
Use the graphs of x = ( (t) and y = g(t) to create a graph of y as a function of x.
-
Use the graphs of x = f (t) and y = g (t) to sketch the parametric curve x = f (t), y = g (t). Indicate with arrows the direction in which the curve is traced as increases. 25. 26. 27. x. 1+
-
Use the graphs of x = f (t) and y = g (t) to sketch the parametric curve x = f (t), y = g (t). Indicate with arrows the direction in which the curve is traced as increases. XA
-
Assume you have just been hired as a business manager of PizzaPalace, a regional pizza restaurant chain. The companys EBIT was $120 million last year and is not expected to grow. PizzaPalace is in...
-
Suppose Victor Cycles, Inc., reported a number of special items on its income statement. The following data, listed in no particular order, came from Victor's financial statements (amounts in...
-
What are the four C's of credit?
-
Refer to the information in QS 19-16. The company sells its product for $50 per unit. Due to new regulations, the company must now incur $2 per unit of hazardous waste disposal costs and $8,500 per...
-
Presented below is an aging schedule for Gille Company At December 31, 2011, the unadjusted balance in Allowance for Doubtful Accounts is a credit of $8,000.Instructions(a) Journalize and post the...
-
What are some practical advantages to using a star schema data model over a relational model in healthcare?
-
You have recently been hired by Keafer Manufacturing to work in its newly established treasury department. Keafer Manufacturing is a small company that produces highly customized cardboard boxes in a...
-
Shark NumberOfTeet: int + + Shark ( ( int , , float ) ) + + Swim ( ) ( ) : void + + Display ( ) ( ) : void Assume the Shark class above is also a sub class of the Animal class. a ) ) Add code to your...
-
Calculate the contribution margin and operating income for June using variable costing. Burlington Company reports the following information for June: Sales Revenue Variable Cost of Goods Sold Fixed...
-
List three criteria that managerial accountants should follow to meet standards of ethical practice.
-
How does financial accounting differ from managerial accounting with regard to rules and restrictions?
-
What are the three amounts required to analyze fixed overhead costs?
-
What is the flexible budget variance?
-
It is foxes' policy to charge accounting costs to administrations expenses what does it means?
-
d. The characteristic equation of a control system is given by s+2s+8s+12s+20s+16+16=0. Determine the number of the roots of the equation which lie on the imaginary axis of s-plane
-
Find the volume of the solid trapped between the surface z = cos x cos y and the xy-plane, where -( ( x ( (, -( ( y ( (.
-
By differentiating the geometric series 1 / 1 + x = 1 - x + x2 - x3 + x4 - ..., |x| < 1, Find a power series that represents 1 / (1 + x)2. What is the interval of convergence?
-
Suppose f is differentiable. If we use the approximation f(x + h) f(x) f'(x) h the error is e(h) = f(x h) - f(x) - f'(x) h. Show that ime(h )-0 lim e(h) 0.
-
______________ refers to the location, time, and occasion where communication occurs.
-
Identify the four steps of the KEYS process.
-
______________ is the general term for the discussion, determination, and deliberation processes that attempt to decide what is right or wrong, what others should or should not do, and what is...
Study smarter with the SolutionInn App