TINY例程 源代码

汇集 TINY例程 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。

收录资源 500 份 全站深度检索
源码文件

%生成阶跃信号 N=1000; t=1:N; sig(1:500)=0; sig(501:1000)=20; x=sig; figure(1); plot(t,x,'LineWidth',2);xlabel('时间 t/s');ylabel('幅…

源码文件

%生成白噪声信号 N=1000; t=1:N; x=rand(1,N)-0.5; figure(1); plot(t,x,'LineWidth',2); xlabel('时间 t/s'); ylabel('幅值 A'); %一维小波分解 [c…

源码文件

%调入含突变点的信号 load nearbrk; x=nearbrk; N=length(x); t=1:N; figure(1); plot(t,x,'LineWidth',2);xlabel('时间 t/s');ylabel('幅值 A'); …

源码文件

%装载并显示原始图像 load bust; %加入含噪 init=2055615866; randn('seed',init); X1=X+20*randn(size(X)); subplot(221);image(X1); %colormap(…

源码文件

%调入含突变点的信号 load cnoislop; x=cnoislop; N=length(x); t=1:N; figure(1); plot(t,x,'LineWidth',2);xlabel('时间 t/s');ylabel('幅值 A')…

源码文件

%装载并显示原始图像 load flujet; subplot(1,2,1);image(X); colormap(map);title('原始图像'); %对图像X用小波db5进行2层分解 [c,l]=wavedec2(X,2,'db5'); C…

源码文件

%生成正弦信号 N=1000; t=1:N; sig1=sin(0.3*t); %生成三角波信号 sig2(1:500)=((1:500)-1)/500; sig2(501:N)=(1000-(501:1000))/500; figure(1);…

源码文件

%读正弦信号 load sinper8; x = sinper8; figure(1); plot(1:length(x),x); % 7层harr小波包 % Shannon熵 wpt = wpdec(x,7,'haar','shannon'…

源码文件

%生成3个正弦信号 N=1024; t=1:N; x1=sin(3*t); x2=sin(0.3*t); x3=sin(0.03*t); %绘制其波形 figure(1); subplot(3,1,1);plot(t,x1,'LineWidth…

源码文件

%装载原始图像 load sinsin; subplot(2,2,1);image(X);colormap(map);title('含噪图像'); %对图像加噪声并显示出含噪图像 init=2788605800; randn('seed',init)…