ex8: move err to title

This commit is contained in:
Diogo Cordeiro 2020-10-08 15:26:33 +01:00
parent e3f90dd286
commit 16a3407843

View File

@ -38,7 +38,5 @@ plot(y5)
hold off hold off
legend("s","x","y3","y5"); legend("s","x","y3","y5");
errors = ['Ex: ' num2str(DiogoEliseuHugo_TP2_6(x, s)) ' Ey3: ' num2str(DiogoEliseuHugo_TP2_6(y3, s)) ' Ey5: ' num2str(DiogoEliseuHugo_TP2_6(y5, s))];
fprintf("erro de x aproximado a s: %f\n", DiogoEliseuHugo_TP2_6(x, s)); title(errors)
fprintf("erro de y3 aproximado a s: %f\n", DiogoEliseuHugo_TP2_6(y3, s));
fprintf("erro de y5 aproximado a s: %f\n", DiogoEliseuHugo_TP2_6(y5, s));