Scout function in PLV calculation

Hi Jun,

The was a problem in the Excel export from the Brainstorm interface when saving complex values. I don’t know what Excel was doing with them, but they were not saved correctly.
I added an error message to prevent this: ‘Cannot export complex values. Please extract the magnitude, phase or power first.’

I didn’t notice anything wrong with the code you sent.
If you think this is not behaving correctly, maybe there is something wrong with the function xlswrite.
In this case, please post a bug report to the Mathworks, they would evaluate this with you.

Francois