perchè ricevo questo errore? Error using superiorfloat Inputs must be floats, namely single or double.
Mostra commenti meno recenti
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
Mann Baidi
il 8 Apr 2024
Hi,
Can you share the values of 'S' 'R' and 'grado_polinomio' using which you are getting the error.
Risposte (0)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!