When I run this, I am getting the error: 'Input file must contain Std matrix.' I had previously (~ 5 months ago) tested this process using the same data and was able to compute the coefficient of variation without issue, but now I am consistently getting this error. For reference I am using Brainstorm version 07-Jan-2025.
Based on the source code, it seems to be hitting this error reporting (line 142) in process_psd_features.m but I'm not sure why there is no std matrix.
After doing some more testing, it seems that the issue occurs when sProcess.options.win_std.Value is set to 'mean+std'. I'm not familiar enough with the Brainstorm architecture to trace back to the exact root of this issue, but I found a work around that has worked for me.
I modified process_psd_features.m to read in the mean and std files separately, removing the need to rely on the 'mean+std' structure (see attached). I think this works for now but it doesn't solve the root issue with the 'mean+std' option.
The issue was how the frequency bands were handled at the moment CV, as the PSD file to compute it had mean and std, but std was cleared at grouping by bands.