Hi all, I encountered an error in displaying ERSD time-frequency figures. The error feedback is this:
Error using matlab.graphics.axis.Axes/set
Error setting property 'CLim' of class 'Axes':
Value must be a 1x2 vector of numeric type in which the second element is larger than the first and
may be Inf
Error in figure_timefreq>ConfigureAxes (line 1325)
set(hAxes, 'CLim', MinMaxVal);
Error in figure_timefreq>UpdateFigurePlot (line 1056)
ConfigureAxes(hAxes, Time, FullTimeVector, Freqs, TfInfo, MinMaxVal, LowFreq);
Error in figure_timefreq (line 28)
eval(macro_method);
Error in view_timefreq (line 215)
figure_timefreq('UpdateFigurePlot', hFig);
The problem is that you have NaN values in this TF file. You computed the TF decomposition of all the sensors instead of limiting it to the MEG sensors. The non-MEG channels do not have any values, therefore the TF power estimated with Morlet wavelets is zero everywhere, and the ERDS normalization led to a division by zero.
In the future, select only the channels you want to process in the options of the TF process, it will also produce smaller files.