Log values for PSD

Good day to all BS staff!
I want to ask if
is there any way to get log normalized values from PSD?

in some papers researchers use logaritmic values from PSD in order to achieve normal distribution and to use parametric statistics.

Thanks in advance!

Hi,
You can right click a PSD and File, Export to Matlab. Then the data is in the .TF field and you can apply the log function. Or within Brainstorm, you can also use Pre-process, Run Matlab command, Data = log(Data); But there's a little bug (fix to come shortly) that won't let you display the result in log scale since it's likely all negative now. And of course, the displayed units won't be correct anymore.

Thank you for the reply! :slight_smile:

Then the data is in the .TF field and you can apply the log function. Or within Brainstorm, you can also use Pre-process, Run Matlab command, Data = log(Data);

https://neuroimage.usc.edu/brainstorm/Tutorials/Scripting#Custom_processing

But there's a little bug (fix to come shortly) that won't let you display the result in log scale since it's likely all negative now

Work in progress: More spectrum fixes by Moo-Marc · Pull Request #362 · brainstorm-tools/brainstorm3 · GitHub

I will check it, It seems to be useful, thank you!
:smiley:

not necessarily, I changed the PSD values using Data*10^12 to get the values in Microvolts and then I changed them to log:

Data = log((Data.*10^12));

I hope this is ok (?)

Sure, that's fine.