下载此文档

基于MATLAB的数据处理与统计作图概要.doc


文档分类:IT计算机 | 页数:约16页 举报非法文档有奖
1/16
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/16 下载此文档
文档列表 文档介绍
基于MATLAB的数据处理与统计作图概要.doc基于MATLAB的数据处理与统计作图概要
基于MATLAB的数据处理与统计作图概要
1 / 16
基于MATLAB的数据处理与统计作图概要
Smooth 函数:
load ;
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:3
C2(:,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)+*(rand(size(x))-);
y(ceil(length(x)*rand(2,1)))=3;
noise=normrnd(0,15,150,1);
y=y+noise;
yy1=smooth(x,y,,'loess');
yy2=smooth(x,y,,'rloess');
yy3=smooth(x,y,,'moving');
yy4=smooth(x,y,,'lowess');
yy5=smooth(x,y,,'sgolay');
yy6=smooth(x,y,,'rlowess');
[xx,ind]=sort(x); subplot(3,2,1);plot(xx,y(ind),'b-.',xx,yy1(ind),'r-'); subplot(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);
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.');
基于MATLAB的数据处理与统计作图概要
基于MATLAB的数据处理与统计作图概要
2 / 16
基于MATLAB的数据处理与统计作图概要
Medfilt1 函数:
x=linspace(0,2*pi,250)';
y=sin(x)*150;
y(ceil(length(x)*rand(2,1)))=3;
noise=normrnd(0,15,25

基于MATLAB的数据处理与统计作图概要 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数16
  • 收藏数0 收藏
  • 顶次数0
  • 上传人夏天教育
  • 文件大小970 KB
  • 时间2021-11-08