%装载并显示原始图像 load flujet; subplot(1,2,1);image(X); colormap(map);title('原始图像'); %对图像X用小波db5进行2层分解 [c,l]=wavedec2(X,2,'db5'); C…
TI例程 源代码
汇集 TI例程 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
%生成正弦信号 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)…
%装载原图像1 load bust X1=X; map1=map; %画出woman图像 subplot(221);image(X1); colormap(map1);title('原图像1'); axis square %装载原图像2 lo…
%调入合成的信号 load sumsin; x=sumsin; N=length(x); t=1:N; figure(1); plot(t,x,'LineWidth',2);xlabel('时间 t/s');ylabel('幅值 A'); %一维…
%生成含噪正弦信号 N=1024; t=1:N; sig=sin(0.03*t); figure(1); plot(t,sig,'LineWidth',2);xlabel('时间 t/s');ylabel('幅值 A'); %叠加信号 x=sig…
%调入自相似信号 load vonkoch; x=vonkoch; N=length(x); t=1:N; figure(1); plot(t,x,'LineWidth',2);xlabel('时间 n');ylabel('幅值 A'); fig…
%调入第一幅模糊图像 load cathe_1; X1=X; %调入第二幅模糊图像 load cathe_2; X2=X; %基于小波分解的图像融合 XFUS=wfusimg(X1,X2,'sym4',5,'max','max'); %显示 …