Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get the pure periodic components in matlab #31

Open
thisistianjing opened this issue Mar 29, 2024 · 1 comment
Open

get the pure periodic components in matlab #31

thisistianjing opened this issue Mar 29, 2024 · 1 comment

Comments

@thisistianjing
Copy link

Hi!
I'm using MATLAB R2023a and Python 3.9.
I've successfully obtained the FOOOF results using the fooof_mat wrapper.
My colleague mentioned that they can extract the pure periodic components without the aperiodic components using Python. I'm curious if there are any methods to achieve the same in MATLAB, as I'm not very proficient in Python.

Thank you for your time in advance.

@TomDonoghue
Copy link
Member

Hey @thisistianjing - the matlab wrapper here does support getting the model fit - you can get the full model fit and aperiodic fit in the fooof_get_model function. I'm not sure why I didn't add the periodic fit there (ooops), but you should be able to recalculate it by subtracting the aperiodic fit from the periodic fit.

More generally, this wrapper is a fairly minimal wrapper to fit the model and get the model parameters, so not everything in the python toolbox is available. In general, it should be fairly straight-forward to extend it to get other features, if you want to try and do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants