Skip to content

Commit 2b7144a

Browse files
committed
Documentation updates
1 parent d252249 commit 2b7144a

7 files changed

+123
-52
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore notebook checkpoint files
2+
.ipynb_checkpoints/*

LonePSD_A_matlab_preprocessing.m

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1-
%% Matlab PreProcessing - Multiple PSDs
1+
%% Matlab PreProcessing - Lone PSD
2+
%
3+
% This script is an example, with a single power spectrum,
4+
% of integrating Python FOOOF into a Matlab workflow.
5+
%
6+
% It is part of a trio of files that must be run in order:
7+
% - `LonePSD_A_*
8+
% - `LonePSD_B_*
9+
% - `LonePSD_C_*
10+
%
211

3-
% Load data
12+
%% Load Data
13+
14+
% Load a single channel of data
415
load('dat/ch_dat_one.mat');
516

617
%% Calculate Power Spectra
718

819
% Calculate a power spectrum with Welch's method
920
[psd, freqs] = pwelch(ch_dat_one, 500, [], [], s_rate);
1021

22+
%% Save Out Data
23+
1124
% Save the power spectra out to mat files
1225
save('power_spectrum', 'freqs', 'psd');

LonePSD_B_python_fooofing.ipynb

Lines changed: 35 additions & 27 deletions
Large diffs are not rendered by default.

LonePSD_C_matlab_analysis.m

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1-
%% Load and Analyze FOOOF Results in Matlab
1+
%% Load and Analyze FOOOF Results in Matlab - Single PSD
2+
%
3+
% This script is an example, with a single power spectrum,
4+
% of integrating Python FOOOF into a Matlab workflow.
5+
%
6+
% It is part of a trio of files that must be run in order:
7+
% - `LonePSD_A_*
8+
% - `LonePSD_B_*
9+
% - `LonePSD_C_*
10+
%
11+
% This code must be run after `LonePSD_B_python_fooofing.ipynb` has been run.
12+
%
13+
14+
%% Load Data
215

316
% Load FOOOF results
417
fooof_results = load('fooof_results.mat');
518

19+
%% Explore FOOOF Results
20+
621
% Check out FOOOF results
722
fooof_results
823

MultiPSD_A_matlab_preprocessing.m

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
%% Matlab PreProcessing - Multiple PSDs
2+
%
3+
% This script is an example, with multiple power spectra,
4+
% of integrating Python FOOOF into a Matlab workflow.
5+
%
6+
% It is part of a trio of files that must be run in order:
7+
% - `MultiPSD_A_*
8+
% - `MultiPSD_B_*
9+
% - `MultiPSD_C_*
10+
%
211

3-
% Load data
12+
%% Load Data
13+
14+
% Load two channels of time series data
415
load('dat/ch_dat_one.mat');
516
load('dat/ch_dat_two.mat');
617

@@ -12,5 +23,7 @@
1223
% Calculate power spectra with Welch's method
1324
[psds, freqs] = pwelch(chs_dat, 500, [], [], s_rate);
1425

26+
%% Save Out Data
27+
1528
% Save the power spectra out to mat files
1629
save('power_spectra', 'freqs', 'psds');

MultiPSD_B_python_fooofing.ipynb

Lines changed: 29 additions & 20 deletions
Large diffs are not rendered by default.

MultiPSD_C_matlab_analysis.m

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
%% Load and Analyze FOOOF Results in Matlab
1+
%% Load and Analyze FOOOF Results in Matlab - Multiple PSDs
2+
%
3+
% This script is an example, with multiple power spectra,
4+
% of integrating Python FOOOF into a Matlab workflow.
5+
%
6+
% It is part of a trio of files that must be run in order:
7+
% - `MultiPSD_A_*
8+
% - `MultiPSD_B_*
9+
% - `MultiPSD_C_*
10+
%
11+
% This code must be run after `MultiPSD_B_python_fooofing.ipynb has been run.
12+
%
213

314
%% Load a specific variable that was saved out to a mat file
415

0 commit comments

Comments
 (0)