perchè ricevo questo errore? Error using superiorfloat Inputs must be floats, namely single or double.
2 views (last 30 days)
Show older comments
S= Basedati.ScadenzaInAnni
R= Basedati.RendimentoLordo
grado_polinomio=input('inserire il grado del polinomio per la linea di tendenza: ')
scatter(S,R,'filled')
hold on
coeff= polyfit(S, R, (grado_polinomio))
s=linspace(min(S), max(S), 100)
r=polyval(coeff,s)
plot(s,r,'-r')
hold off
1 Comment
Mann Baidi
on 8 Apr 2024
Hi,
Can you share the values of 'S' 'R' and 'grado_polinomio' using which you are getting the error.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!