MATLAB: Does the MATLAB code not wait for UIIMPORT to complete

6.5errorfunctionimportMATLABpauser13scriptskipuiimportundefinedvariablewait

I am using UIIMPORT. My code continues to execute before I have completed using the UIIMPORT wizard. However, I need to have the UIIMPORT variables available before the code continues.

Best Answer

To block code execution until the user has finished using the Import Wizard, request a return value from UIIMPORT. For example:
S=uiimport;
However, note that there is an additional bug in UIIMPORT that affects the return value method. This can be resolved using the following Related Answer: