⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 data_matrix.m

📁 vector to matrix function
💻 M
字号:
% This function get an EEG measurement, devide it to epoches of 1 seconds
% with an overlap of o .5 second.  than organize it in the columns of a
% matrix S.
function [S]=data_matrix (a)

% a=1:1:1280;
N=length (a);
M=N.*2./128;
n=1;

j=1;
for i=1:1:M-1
S (1:1:128,j)=a (n:1:127+n);
n=n+64; % in order to get overlap of 0.5-s
j=j+1;
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -