Hello,
I computed PAC through Frequency>Phase-amplitude coupling, however, I was wondering if it is possible to extract all values in a matrix in excel.
Thank you!!
Hello,
I computed PAC through Frequency>Phase-amplitude coupling, however, I was wondering if it is possible to extract all values in a matrix in excel.
Thank you!!
Currently, there is not a direct way to do so in the Brainstorm GUI. However, you can export the PAC values for all the signals and all the frequency combinations by accessing the content of the PAC file (
)
Export the resulting PAC file to Matlab (right-click on the PAC file then Export to Matlab)
From there, extract the desired PAC data which is stored in the field sPAC.DirectPAC which as has a shape of [nSignals, 1, nFreqLow, nFreqHigh]
Check this link for further information on the data saved in the PAC file:
https://neuroimage.usc.edu/brainstorm/Tutorials/TutPac#File_contents
Example, PAC map for the first signal:
mapSignal1 = squeeze(wow.sPAC.DirectPAC(1,1,:,:));
Finally, save mapSignal1 to an Excel spreadsheet with the Matlab function writematrix
https://www.mathworks.com/help/matlab/ref/writematrix.html