MATLAB: Am I missing files from the MATLAB 6.5.1 (R13SP1) installation on Linux

blocksetexecutableexistfilefunctionimageMATLABmexmexglsmissingpowerprocessingsfun_psbdisccsimsimpowersystemssystems

Why am I missing files from my MATLAB 6.5.1 (R13SP1) installation on Linux?
I have recently installed MATLAB 6.5.1 (R13SP1) or a Toolbox or Blockset on Linux. When running functions or simulating Simulink models, I receive one of the following errors about a missing MEX file:
S-Function 'sfun_psbdiscc' does not exist
MATLAB error message:
Invalid MEX-file
Unable to load mex file: D:\MATLAB6p5p1\toolbox\powersys\powersys\sfun_psbdiscc.dll.
The specified module could not be found.

Best Answer

This has been verified as a bug in MATLAB 6.5.1 (R13SP1) in the way that the installer handles certain Linux installations.
Currently, to work around this issue, try one of the following:
1. Try to reinstall MATLAB or the Toolbox or Blockset which is missing files.
2. If you are missing a specific MEX file, try using the WHICH command to find it.
which -all sfun_psbdiscc
sfun_psbdiscc not found.
If it is not found, try to find the corresponding ".c" file.
which -all sfun_psbdiscc.c
D:\MATLAB6p5p1\toolbox\powersys\powersys\sfun_psbdiscc.c
Browse to the path indicated and use the MEX function on the ".c" file to create the missing MEX file.
cd('D:\MATLAB6p5p1\toolbox\powersys\powersys\')
mex sfun_psbdiscc.c