Polyfit plot just need one line
显示 更早的评论
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?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Multiple Linear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!