data_matrix.m
来自「vector to matrix function」· M 代码 · 共 18 行
M
18 行
% 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 + =
减小字号Ctrl + -
显示快捷键?