Giuseppe, use
legend(strcat('y=',num2str(c(1)),'x^2+',num2str(c(2)),'x+',num2str(c(3))))
or (without built-in function)
legend(['y=',num2str(c(1)),'x^2+',num2str(c(2)),'x+',num2str(c(3))])
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!