Hi Lewis,
You can refer to below link for implementation of Polynomials in MATLAB.
I am assuming X here is the coefficient values and its range is from -100 to 100.
You can follow the below pseudo code
prompt = 'What is the degree of polynomial ';
degree = input(prompt);
polynomial = [];
for x = 0 to degree
prompt = 'What is the original value? ';
y = input(prompt);
if y >=100 & y>= -100
polynomial(x) =y;
else
print(‘invalid value’)
end
