基本信息
源码名称:matlab相干系数计算COH
源码大小:0.62KB
文件格式:.m
开发语言:MATLAB
更新时间:2020-10-22
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
计算信号锁相值
function [eeg_coh_matrix] =my_alpha_COH_MATRIX(eeg_coh_result)
%将eeg_coh_result结构体中的各个通道间的coh计算结果进行平均,得到一个单一的值
struct_length=length(eeg_coh_result);
eeg_coh_matrix=zeros(struct_length,struct_length);
for index=1:struct_length
for index1=1:struct_length
eeg_coh_matrix(index,index1)=mean(mean(eeg_coh_result(index).alpha1{1,index1}));
end
end
index4=31;
index5=0;
for index2=struct_length:-1:1
index5=index5 1;
index4=31;
for index3=1:struct_length
index4=index4-1;
eeg_coh_matrix(index3,index2)=eeg_coh_matrix(index5,index4);
end
end
end
计算信号锁相值
function [eeg_coh_matrix] =my_alpha_COH_MATRIX(eeg_coh_result)
%将eeg_coh_result结构体中的各个通道间的coh计算结果进行平均,得到一个单一的值
struct_length=length(eeg_coh_result);
eeg_coh_matrix=zeros(struct_length,struct_length);
for index=1:struct_length
for index1=1:struct_length
eeg_coh_matrix(index,index1)=mean(mean(eeg_coh_result(index).alpha1{1,index1}));
end
end
index4=31;
index5=0;
for index2=struct_length:-1:1
index5=index5 1;
index4=31;
for index3=1:struct_length
index4=index4-1;
eeg_coh_matrix(index3,index2)=eeg_coh_matrix(index5,index4);
end
end
end