Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GIVA_EEGtoolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GIVA
GeoViSense
GIVA_EEGtoolbox
Commits
ea3d4e99
Unverified
Commit
ea3d4e99
authored
4 years ago
by
Sara Lanini-Maggi
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #3 from leejheth/master
Update GIVA_EEGtoolbox_v3_2.m
parents
4d797a41
39da6849
Branches
master
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GIVA_EEGtoolbox_v3_2.m
+8
-8
8 additions, 8 deletions
GIVA_EEGtoolbox_v3_2.m
with
8 additions
and
8 deletions
GIVA_EEGtoolbox_v3_2.m
+
8
−
8
View file @
ea3d4e99
...
@@ -420,11 +420,11 @@ file = cell(size(eeg_spectrum,1),1);
...
@@ -420,11 +420,11 @@ file = cell(size(eeg_spectrum,1),1);
switch
measure_type
switch
measure_type
case
1
% alpha power
case
1
% alpha power
mean_alpha
=
nan
(
size
(
eeg_spectrum
,
1
),
8
);
mean_alpha
=
cell
(
size
(
eeg_spectrum
,
1
),
1
);
for
count
=
1
:
size
(
eeg_spectrum
,
1
)
for
count
=
1
:
size
(
eeg_spectrum
,
1
)
file
{
count
}
=
eeg_spectrum
{
count
}
.
file
;
file
{
count
}
=
eeg_spectrum
{
count
}
.
file
;
scores
{
count
}
.
mean_alpha_across_channels
=
alpha_power
(
eeg_spectrum
{
count
}
.
n_epoch
,
eeg_spectrum
{
count
}
.
stim_spectrum
,
eeg_spectrum
{
count
}
.
baseline_spectrum
,
selected_ch_id
);
scores
{
count
}
.
mean_alpha_across_channels
=
alpha_power
(
eeg_spectrum
{
count
}
.
n_epoch
,
eeg_spectrum
{
count
}
.
stim_spectrum
,
eeg_spectrum
{
count
}
.
baseline_spectrum
,
selected_ch_id
);
mean_alpha
(
count
,:)
=
mean
(
scores
{
count
}
.
mean_alpha_across_channels
,
2
)
'
;
mean_alpha
{
count
}
=
mean
(
scores
{
count
}
.
mean_alpha_across_channels
,
2
)
'
;
end
end
% Make a table
% Make a table
...
@@ -435,11 +435,11 @@ switch measure_type
...
@@ -435,11 +435,11 @@ switch measure_type
case
2
% FAA
case
2
% FAA
mean_FAA
=
nan
(
size
(
eeg_spectrum
,
1
),
8
);
mean_FAA
=
cell
(
size
(
eeg_spectrum
,
1
),
1
);
for
count
=
1
:
size
(
eeg_spectrum
,
1
)
for
count
=
1
:
size
(
eeg_spectrum
,
1
)
file
{
count
}
=
eeg_spectrum
{
count
}
.
file
;
file
{
count
}
=
eeg_spectrum
{
count
}
.
file
;
scores
{
count
}
.
FAA
=
FAA_calculation
(
eeg_spectrum
{
count
}
.
n_epoch
,
eeg_spectrum
{
count
}
.
stim_spectrum
,
eeg_spectrum
{
count
}
.
baseline_spectrum
);
scores
{
count
}
.
FAA
=
FAA_calculation
(
eeg_spectrum
{
count
}
.
n_epoch
,
eeg_spectrum
{
count
}
.
stim_spectrum
,
eeg_spectrum
{
count
}
.
baseline_spectrum
);
mean_FAA
(
count
,:)
=
scores
{
count
}
.
FAA
'
;
mean_FAA
{
count
}
=
scores
{
count
}
.
FAA
'
;
end
end
% Make a table
% Make a table
...
@@ -450,11 +450,11 @@ switch measure_type
...
@@ -450,11 +450,11 @@ switch measure_type
case
3
% Engagement index
case
3
% Engagement index
mean_engage
=
nan
(
size
(
eeg_spectrum
,
1
),
8
);
mean_engage
=
cell
(
size
(
eeg_spectrum
,
1
),
1
);
for
count
=
1
:
size
(
eeg_spectrum
,
1
)
for
count
=
1
:
size
(
eeg_spectrum
,
1
)
file
{
count
}
=
eeg_spectrum
{
count
}
.
file
;
file
{
count
}
=
eeg_spectrum
{
count
}
.
file
;
scores
{
count
}
.
mean_engage_across_channels
=
engage_level
(
eeg_spectrum
{
count
}
.
n_epoch
,
eeg_spectrum
{
count
}
.
stim_spectrum
,
eeg_spectrum
{
count
}
.
baseline_spectrum
,
selected_ch_id
);
scores
{
count
}
.
mean_engage_across_channels
=
engage_level
(
eeg_spectrum
{
count
}
.
n_epoch
,
eeg_spectrum
{
count
}
.
stim_spectrum
,
eeg_spectrum
{
count
}
.
baseline_spectrum
,
selected_ch_id
);
mean_engage
(
count
,:)
=
mean
(
scores
{
count
}
.
mean_engage_across_channels
,
2
)
'
;
mean_engage
{
count
}
=
mean
(
scores
{
count
}
.
mean_engage_across_channels
,
2
)
'
;
end
end
% Make a table
% Make a table
...
@@ -464,10 +464,10 @@ switch measure_type
...
@@ -464,10 +464,10 @@ switch measure_type
disp
([
'Analysis result is saved in the folder
''
Results
''
under a file name
''
[Engagement level] '
result_filename
'
''
'
])
disp
([
'Analysis result is saved in the folder
''
Results
''
under a file name
''
[Engagement level] '
result_filename
'
''
'
])
case
4
% Arousal
case
4
% Arousal
mean_arousal
=
nan
(
size
(
eeg_spectrum
,
1
),
8
);
mean_arousal
=
cell
(
size
(
eeg_spectrum
,
1
),
1
);
for
count
=
1
:
size
(
eeg_spectrum
,
1
)
for
count
=
1
:
size
(
eeg_spectrum
,
1
)
file
{
count
}
=
eeg_spectrum
{
count
}
.
file
;
file
{
count
}
=
eeg_spectrum
{
count
}
.
file
;
mean_arousal
(
count
,:)
=
Arousal
(
eeg_spectrum
{
count
}
.
n_epoch
,
eeg_spectrum
{
count
}
.
stim_spectrum
,
eeg_spectrum
{
count
}
.
baseline_spectrum
)
'
;
mean_arousal
{
count
}
=
Arousal
(
eeg_spectrum
{
count
}
.
n_epoch
,
eeg_spectrum
{
count
}
.
stim_spectrum
,
eeg_spectrum
{
count
}
.
baseline_spectrum
)
'
;
end
end
% Make a table
% Make a table
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment