资源简介
用fast ICA进行混叠信号的分离
没有其他的附带文件,只有一个文件就实现了
代码片段和文件信息
clc;clear all;close all;
fs=1000;
N=1024;
t=(0:N-1)/fs;
f1=60;
f2=150;
f3=200;
I1=sin(2*pi*f1*t);
I2=cos(2*pi*f2*t);
I3=randn(size(t));
% I3=sin(2*pi*f3*t);
subplot(431)plot(I1)title(‘输入信号1‘)axis([0100-44]);
subplot(432)plot(I2)title(‘输入信号2‘)axis([0100-44]);
subplot(433)plot(I3)title(‘输入信号3‘)axis([0100-44]);
% 将其组成矩阵
S=[I1;I2;I3];
Sweight=rand(size(S1));
MixedS=Sweight*S; % 将混合矩阵重新排列并输出
subplot(434)plot(MixedS(1:))title(‘混合信号1‘)axis([0100-44]);
subplot(435)plot(MixedS(2:))title(‘混合信号2‘)axis([0100-44]);
subplot(436)plot(MixedS(3:))title(‘混合信号3‘)axis([0100-44]);
MixedS_bak=MixedS;
%%%%%%%%%%%%%%%%%%%%%%%%%% 标准化 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MixedS_mean=zeros(31);
for i=1:3
MixedS_mean(i)=mean(MixedS(i:));
end % 计算MixedS的均值
for i=1:3
for j=1:size(MixedS2)
MixedS(ij)=MixedS(ij)-MixedS_mean(i);
end
end
%%%%%%%%%%%%%%%%%%%%%%%%%%% 白化 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MixedS_cov=cov(MixedS‘); % cov为求协方差的函数
[ED]=eig(MixedS_cov); % 对信号矩阵的协方差函数进行特征值分解
Q=inv(sqrt(D))*(E)‘; % Q为白化矩阵
MixedS_white=Q*MixedS; % MixedS_white为白化后的信号矩阵
IsI=cov(MixedS_white‘); % IsI应为单位阵
%%%%%%%%%%%%%%%%%%%%%%%% FASTICA算法 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
X=MixedS_white; % 以下算法将对X进行操作
[
- 上一篇:基于LEACH算法的改进算法GAF算法
- 下一篇:邻域嵌入的超分辨率matlab代码
相关资源
- optical_flow 光流法 matlab 实现程序
- 相关向量机的快速算法
- Faster-RCNN+ZF制作自己的数据集和训练模
- 数模9个基本模型
- MIMO-OFDM+WIRELESS+COMMUNICATIONS+WITH+MATLAB
- Mathematica完美教程 - 从入门到精通
- Linear Algebra with Applications 9th ed - Stev
- FASTICA盲源信号分离代码Matlab
- fastFWI-master.zip
- Multirate Filtering for Digital Signal Process
- Clustering by fast search and find of density
- Matlab coding for PAM4 basic transmission
-
Introduction to Simuli
nk with Engineering A - 信号处理滤波器设计——基于MATLAB和
- OPTICAL SCANNING HOLOGRAPHY WITH MATLAB
- Faster-RCNN+ZF制作自己的数据集和训练模
- Practical Finite ElementModeling in Earth Scie
- Fusiello极线校正_A compact algorithm for r
- Numerical Methods Using MATLAB_Mathews_4th(英
-
MATLAB/Simuli
nk for Digital Communication - FAM和SSCA算法的matlab源程序-detection a
- Clustering by fast search and find of density
- Biosignal and biomedical image processing matl
- 盲信号的语音分离MATLAB程序
- fast角点检测算法for matlab
- 数值方法(MATLAB版)第四版英文文字
- 快速引导滤波
- optisystem-matlab使用方法
- FAST特征点检测算法的matalb源码实现
- 小波工具箱
评论
共有 条评论