Lagged coherence

The issue is that the data to export is 4D [nSensors, nSenstors, nWindows, nFrequency]. You need to collapse either the time of the frequency dimension. Check this post: