perchè ricevo questo errore? Error using superiorfloat Inputs must be floats, namely single or double.

2 views (last 30 days)
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

Answers (0)

Products


Release

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!