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

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 Commento

Hi,
Can you share the values of 'S' 'R' and 'grado_polinomio' using which you are getting the error.

Accedi per commentare.

Risposte (0)

Prodotti

Release

R2023b

Richiesto:

il 24 Mar 2024

Commentato:

il 8 Apr 2024

Community Treasure Hunt

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

Start Hunting!