-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d252249
commit 2b7144a
Showing
7 changed files
with
123 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Ignore notebook checkpoint files | ||
.ipynb_checkpoints/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
%% Matlab PreProcessing - Multiple PSDs | ||
%% Matlab PreProcessing - Lone PSD | ||
% | ||
% This script is an example, with a single power spectrum, | ||
% of integrating Python FOOOF into a Matlab workflow. | ||
% | ||
% It is part of a trio of files that must be run in order: | ||
% - `LonePSD_A_* | ||
% - `LonePSD_B_* | ||
% - `LonePSD_C_* | ||
% | ||
|
||
% Load data | ||
%% Load Data | ||
|
||
% Load a single channel of data | ||
load('dat/ch_dat_one.mat'); | ||
|
||
%% Calculate Power Spectra | ||
|
||
% Calculate a power spectrum with Welch's method | ||
[psd, freqs] = pwelch(ch_dat_one, 500, [], [], s_rate); | ||
|
||
%% Save Out Data | ||
|
||
% Save the power spectra out to mat files | ||
save('power_spectrum', 'freqs', 'psd'); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters