You can use the ezplot function of matlab
. I'm not sure about what you need, so I hope this will help. You have the coefficients so just get the function and pass it to the function ezplot
. Something like this :
UPDATE :
func = "";
for k=1:length(R)
func = func + x^k;
end
And then :
ezplot(R);