% *CLEAN MATLAB ENVIRONMENT* 
clc  
clear all 

degree = input("Enter degree of polynomial");%input degree of polynomial

% *FOR LOOP to input degree and coefficient*
for j = 0:(degree)
    coef = input("Enter coefficients of x: ") % inputs Coefficients of the polynomial based on degree
    e(:,j+1) = coef; %add one to counter sign
end

%*FOR LOOP to generate range X of values for polynomial P(X)
for X =-100:1:100;
    p(x) = [5 4 3]
    plot (p(X))
end 


%*PLOT GRAPH P(X)* *Specifications*
x = linespace(-2,2);
y = (-2,2);
plot (X,Y);
grid on; %display majoy grid lines
grid minor; %display mionr grid lines
title ('\colour{blue} Graph showing calculated range X values for input Polynomial','Frontweight','bold','Fontsize 16'); %For the title of the graph
xaxis ('\colour{red} x-axis','Fontsize 12','Fontweight bold'); %For the x axis label of the graph 
yaxis ('\colour{red} y-axis','Fontsize 12','Fontweight bold'); %for the y axis label of the graph


