MATLAB freezing, but not when using breakpoints

1 次查看(过去 30 天)
Hi all,
I'm having issues with a MATLAB script, which calculates the coherency between each channel of a nChannXnSamples signal (thus obtaining nFreqSamplesXnChannXnChann)
For that issue I'm using two nested loops (one for each of the last two dimensions) and using the scripts from EEGLAB for calculating the cross correlation.
The issue is that this scripts make my system to freeze, having to restart it pressing the power button.
What surprises me, is that when I debug the script line-by-line using breakpoints, the function runs perfectly until the end.
To sum up, the function only fails (freezing my system) when it runs completely by itself, if I pause it randomly, it is less likely to produce that failure.
Ps: I have tried to use the function pause every 10 iterations, but it doesn't work.
Ps2: The issue persist on MATLAB 2021a and 2019a
  1 个评论
Prabhan Purwar
Prabhan Purwar 2021-5-5
Hi Victor,
It would be great if you please share the script with us so that we can replicate the issue from our side and will be able to provide a better solution.
Thanks

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by