Thank you Sim for your information.
Hi Sim, I tried to use your switch in order to plot actual frames. However, I am facing the following error: Undefined function or variable 'resetXPosition'. Error in ImportAedatDataVersion1or2 (line 425) if resetXPosition ~= output.data.frame.xPosition(frameIndex) ... The problem is you defiend resetXPosition inside the IF and then you used it later. So, if process goes outside of this IF condition, this variable doesnt exist.