Polyfit plot just need one line
Mostra commenti meno recenti
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?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Multiple Linear Regression in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!