Filter löschen
Filter löschen

MATLAB freezing, but not when using breakpoints

1 Ansicht (letzte 30 Tage)
Victor R
Victor R am 20 Apr. 2021
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 Kommentar
Prabhan Purwar
Prabhan Purwar am 5 Mai 2021
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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by