-
Notifications
You must be signed in to change notification settings - Fork 4
/
Setup_Electrode.m
34 lines (27 loc) · 1.31 KB
/
Setup_Electrode.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% This program is a free software for academic research: you can redistribute
% it and/or modify it for non-commercial uses, under the license terms provided
% with the package at the GitHub page where this package is downloaded.
% This program is distributed in the hope that it will be useful, but WITHOUT
% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
% FOR A PARTICULAR PURPOSE. See the License for more details. This program is
% for research purposes only. This program CAN NOT be used for commercial purposes.
% This program SHOULD NOT be used for medical purposes. The authors WILL NOT
% be responsible for using the program in medical conditions.
% ==========================================
% This script sets up electrodes based on a Biosemi cap cofiguration with 128 channels.
% Written by Seyed Amir Hossein Hosseini
% 09/01/2017
%%
clc, close all, clear all,
%%
ELECTRODE = struct('loc', [], 'spc', '');
%% Electrode Configuration # 1
load('Resource\Biosemi-128.mat')
electrode.spc = 'Biosemi-128';
electrode.loc = curryloc;
ELECTRODE(1) = electrode;
elec_save = electrode.loc.';
save(['Resource\' electrode.spc '.txt'], 'elec_save', '-ASCII');
figure, scatter3(electrode.loc(1, :), electrode.loc(2, :), electrode.loc(3, :), 'o')
%%
save('Resource\ELECTRODE', 'ELECTRODE')