Hi all,
I am running an automated test using Matlab. I have two functions, collectData and Analysis and a main script than calls these functions in that order. collectData plays a bunch of wav files using sound (also tried audioplayer) function (non-blocking function call) sequentially, make some measurements while the audio is being played to collect raw data. Analysis function analyses this data to generate results. The issue is that, sometimes Analysis function is called when collectData has not finished its execution completely and then Analysis function complains because it does not have complete data. I am guessing that sound/audioplayer has something to do with this but not sure exactly what. Could someone help me out here?
Thanks in advance, Alok
Best Answer