




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Smooth函数:load count.dat;c=smooth(count(:);C1=reshape(c,24,3);subplot(3,1,1);plot(count,:);hold on;plot(C1,-);C2=zeros(24,3);for I=1:3C2(:,I)=smooth(count(:,I);end;subplot(3,1,2);plot(count,:);hold on;plot(C2,-);subplot(3,1,3);plot(C2-C1,o-); x=15*rand(150,1);y=sin(x)+0.5*(rand(size(x)-0.5);y(ceil(le
2、ngth(x)*rand(2,1)=3;noise=normrnd(0,15,150,1);y=y+noise; yy1=smooth(x,y,0.1,loess); yy2=smooth(x,y,0.1,rloess); yy3=smooth(x,y,0.1,moving); yy4=smooth(x,y,0.1,lowess); yy5=smooth(x,y,0.1,sgolay); yy6=smooth(x,y,0.1,rlowess); xx,ind=sort(x);subplot(3,2,1);plot(xx,y(ind),b-.,xx,yy1(ind),r-);subplot(3,
3、2,2);plot(xx,y(ind),b-.,xx,yy2(ind),r-);subplot(3,2,3);plot(xx,y(ind),b-.,xx,yy3(ind),r-);subplot(3,2,4);plot(xx,y(ind),b-.,xx,yy4(ind),r-);subplot(3,2,5);plot(xx,y(ind),b-.,xx,yy5(ind),r-);subplot(3,2,6);plot(xx,y(ind),b-.,xx,yy6(ind),r-);Smoothts函数: x=122+rand(500,4);p=x(:,4);out1=smoothts(p,b,30)
4、;out2=smoothts(p,b,100);out3=smoothts(p,g,30);out4=smoothts(p,g,100,100);out5=smoothts(p,e,30);out6=smoothts(p,e,100);subplot(2,2,1);plot(p);subplot(2,2,2);plot(out1,k);hold on;plot(out2,m.);subplot(2,2,3);plot(out3,k);hold on;plot(out4,m.);subplot(2,2,4);plot(out5,k);hold on;plot(out6,m.);Medfilt1函
5、数:x=linspace(0,2*pi,250);y=sin(x)*150;y(ceil(length(x)*rand(2,1)=3;noise=normrnd(0,15,250,1);y=y+noise;subplot(1,2,1);plot(x,y);yy=medfilt1(y,50);subplot(1,2,2);plot(x,y,r-.);hold on;plot(x,yy,.);直方图:Hist函数:x=randn(499,1);y=randn(499,3);subplot(3,1,1);hist(x);subplot(3,1,2);hist(x,100);subplot(3,1,3
6、);hist(y,25);Histc函数:x=-3.9:0.1:3.9;y=randn(10000,1);subplot(1,2,1);hist(y,x);n=histc(y,x);c=cumsum(n);subplot(1,2,2);bar(x,c);Histfit函数: r=normrnd(10,1,10,1); histfit(r); h=get(gca,Children);盒子图: N=1024;x1=normrnd(5,1,N,1); x2=normrnd(6,1,N,1);x=x1 x2;subplot(2,2,1);sym1=*;notch1=1;boxplot(x,notch1
7、,sym1); subplot(2,2,2);notch2=0;boxplot(x,notch2);x=randn(100,25);subplot(2,1,1);boxplot(x);误差条图: x=0:pi/10:pi;y=sin(x);e=std(y)*ones(size(x);errorbar(x,y,e)最小二乘法拟合直线: x=1:10; y1=x+rand(1,10); scatter(x,y1,25,b,*) hold on; y2=2*x+randn(1,10); plot(x,y2,mo) y3=3*x+randn(1,10); plot(x,y3,rx:); y4=4*x+
8、randn(1,10); plot(x,y4,g+-);帕累托图: codelines=200 120 555 608 1024 101 57 687; coders=Fred,Ginger,Norman,Max,Julia,Wally,Heidi,Pat; pareto(codelines,coders)QQ图: M=100;N=1; x=normrnd(0,1,M,N); y=rand(M,N); z=x,y; subplot(2,2,1);h1=qqplot(z); grid on; x=normrnd(0,1,100,1); y=normrnd(0.5,2,50,1); subplot
9、(2,2,2); h2=qqplot(x,y); grid on; x=normrnd(5,1,100,1); y=weibrnd(2,0.5,100,1); subplot(2,2,3); h3=qqplot(x,y); grid on; subplot(2,2,4); x=normrnd(10,1,100,1); subplot(2,2,4); qqplot(x);回归残差图: X=ones(10,1) (1:10); y=X*10;1+normrnd(0,0.1,10,1); b,bint,r,rint=regress(y,X,0.06); rcoplot(r,rint);多项式拟合曲线
10、: p=1 -2 -1 0; t=0:0.1:3; y=polyval(p,t)+0.5*randn(size(t); plot(t,y,ro); h=refcurve(p); set(h,Color,r); q=polyfit(t,y,3); refcurve(q);参考线: x=1:10; y=x+randn(1,10); scatter(x,y,25,b,*); lsline;No allowed line types found. Nothing done. mu=mean(y); hline=refline(0 mu); set(hline,Color,r);正态概率图: M=100;N=1; x=normrnd(0,1,M,N); y=rand(M,N); z=x,y; h=normplot(z); grid on;点的标签: load cities; education=ratings(:,6); arts=ratings(:,7); plot(education,arts,+); gname(names)工序能力指数: data=normrnd(1,1,30,1); p,cp,cpk=capable(data,-3,3)p =
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年石英玻璃纤维布项目发展计划
- 电子文档格式转换标准流程
- 加强需求预测提升响应速度
- 关于开展新员工培训的策划书
- 自然资源保护与合理利用合作协议
- 移动应用开发及维护服务合同
- 草房子小学生故事解读
- 2025年稀土-铁超磁致伸缩单晶材料合作协议书
- 惠州学校道路标线施工方案
- IT服务行业云服务解决方案探讨
- DL∕T 1094-2018 电力变压器用绝缘油选用导则
- 【我国农村数字普惠金融的发展问题及完善策略12000字(论文)】
- 重庆建设-花篮拉杆式悬挑脚手架工艺标准(试行)
- 动物疫病传染病防控培训制度
- DL-T-5115-2016混凝土面板堆石坝接缝止水技术规范
- 数据驱动历史研究
- 全国川教版信息技术八年级下册第二单元第1节《设计文创作品》教学设计
- 危货押运员考试答案(题库版)
- QCT267-2023汽车切削加工零件未注公差尺寸的极限偏差
- 2022-2023学年浙江省绍兴市高一(下)期末数学试卷含答案
- 初中英语七选五经典5篇(附带答案)
评论
0/150
提交评论