I am able to execute the following code without errors in MATLAB.
lasterror('reset');ai = analoginput('winsound');chan = addchannel(ai,1);set(ai,'TriggerChannel',chan);error_stat = lasterror;
At the end of the code execution, the lasterror message string is not empty even though the code has executed successfully.
Best Answer