I am trying to compile a mex file from a MATLAB function for the first time (win7 x64, MATLAB 2009b). I followed the directions above with modifications posted by Wang, but I get an error. Can anyone suggest what may be wrong?
Thanks for all your great contributions.
Here's the error:
emlmex -d 'D:\myfile' myfun
Warning: The storage type used is an old style. The following file is out of date:
C:\Users\Jeffrey\AppData\Roaming\MathWorks\MATLAB\R2009b\mexopts.bat
> In CompilerConfigurationFactory>CompilerConfigurationFactory.getBasicStructArray at 189
In CompilerConfigurationFactory>CompilerConfigurationFactory.process at 107
In getCompilerConfigurations at 56
In C:\Program Files\MATLAB\R2009b\toolbox\emlcoder\emlcoder\private\compilerman.p>parse_opts_file at 66
In C:\Program Files\MATLAB\R2009b\toolbox\emlcoder\emlcoder\private\compilerman.p>compilerman at 15
In C:\Program Files\MATLAB\R2009b\toolbox\emlcoder\emlcoder\private\emlckernel.p>emlckernel/compile at 304
In C:\Program Files\MATLAB\R2009b\toolbox\emlcoder\emlcoder\private\emlckernel.p>emlckernel/doit at 135
In C:\Program Files\MATLAB\R2009b\toolbox\emlcoder\emlcoder\private\emlckernel.p>emlckernel at 31
In emlmex at 148
Attempt to reference field of non-structure array.
Use help emlmex for more information on using this command.
??? Error using ==> emlmex
Strange : Program does not seem to work with your example
>> s=struct('Name',{'Jon','Jonathan','Johnny'},'Score',[85,100,75]);
>> struc2xls('demo',s)
??? Error using ==> ctranspose
Transpose on ND array is not defined.
Error in ==> struc2xls at 91
out=[names';c'];
07 Jan 2009
struc2xls
Writes a data structure in MATLAB to an excel file.
Author: Jeff Evans
Strange : Program does not seem to work with your example
>> s=struct('Name',{'Jon','Jonathan','Johnny'},'Score',[85,100,75]);
>> struc2xls('demo',s)
??? Error using ==> ctranspose
Transpose on ND array is not defined.
Error in ==> struc2xls at 91
out=[names';c'];
2
07 Jan 2009
struc2xls
Writes a data structure in MATLAB to an excel file.