Question: Question 1 : Write an Octave script to plot two polynomials: y - 1 = x 2 - 2 x + 1 y - 2

Question 1: Write an Octave script to plot two polynomials:
y-1=x2-2x+1
y-2=0.5x3-x2+3x-5
i. Customise the plot grid, add a legend, and label the x and y axis.
ii. Use an octave function for x values from -5 to +5 with 100 points.
iii. Use a blue solid line with a width of 0.5 for y-1
iv. Use a red dash line with a width of 1.5 for y22
v. Set the correct limits on the axis to (-5,5)
vi. Set the axis labels with font size of 20 and bold.
vii. Set title bold with font size 12. Add your student number to title instead of 123456789.
viii. Put legend on top as shown in the figure below.
ix. Save the figure as a .png file.
y=x2-2x+1
--,y=0.5x3-x2+3x-5
Plot of Two Polynomials: 123456789
Question 1 : Write an Octave script to plot two

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!