Polyfit plot just need one line
Afficher commentaires plus anciens
The following code generates me this plot:
[p,S] = polyfit(x,y,4);
alpha=0.05;
[y_fit,delta] = polyconf(p,x,S,'alpha',alpha);
% [y_fit,delta] = polyval(p,x,S);
plot(x,y_fit,'r-');
plot(x,y_fit-delta,'m--',x,y_fit+delta,'m--');

However i just want one line to be plotted and not a thousand...
Can somebody tell me how to do that?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Multiple Linear Regression dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!