p1 = [2, -1]; % Create a polynomial f(x) = 2x -1
x=-5:100; % Create some x values to evaluate f(x)
y = polyval(p1,x); %evaluate polynomial
plot(x,y); % plot it

axis tight % force concise display of plot


roots_p1 = roots(p1)  % Solve the Equation  


