Accepted Answer The "LoadLibrary failed with error 193: %1 is not a valid Win32" means that a 64 bit operating system is trying to load a 32 bit Win32 file. Fixing the error involves one of the two following options: 1. Run the application under 32 bit MATLAB.