em lập trình hàm S function
>> mex -setup
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2009b\sys\lcc
[2] Microsoft Visual C++ 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None
Compiler: 1
Please verify your choices:
Compiler: Lcc-win32 C 2.4.1
Location: C:\PROGRA~1\MATLAB\R2009b\sys\lcc
Are these correct [y]/n? y
Trying to update options file: C:\Documents and Settings\Nguyen Trung\Application Data\MathWorks\MATLAB\R2009b\mexopts.bat
From template: C:\PROGRA~1\MATLAB\R2009b\bin\win32\mexopts\lccopt s.bat
Done . . .
************************************************** ************************
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the new
API. You can find more information about this at:
http://www.mathworks.com/support/sol...ution=1-5C27B9
Building with the -largeArrayDims option enables the new API.
************************************************** ************************
Khi dùng lệnh
>> mex realPID.c
thì thấy xuất hiện thêm file realPID.mexw32 trong work chứ không phải là file realPID.dll. Tại sao lại như thế ah? Xin mọi người chỉ giúp.
em dùng winsp, matlab 2009b
>> mex -setup
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2009b\sys\lcc
[2] Microsoft Visual C++ 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None
Compiler: 1
Please verify your choices:
Compiler: Lcc-win32 C 2.4.1
Location: C:\PROGRA~1\MATLAB\R2009b\sys\lcc
Are these correct [y]/n? y
Trying to update options file: C:\Documents and Settings\Nguyen Trung\Application Data\MathWorks\MATLAB\R2009b\mexopts.bat
From template: C:\PROGRA~1\MATLAB\R2009b\bin\win32\mexopts\lccopt s.bat
Done . . .
************************************************** ************************
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the new
API. You can find more information about this at:
http://www.mathworks.com/support/sol...ution=1-5C27B9
Building with the -largeArrayDims option enables the new API.
************************************************** ************************
Khi dùng lệnh
>> mex realPID.c
thì thấy xuất hiện thêm file realPID.mexw32 trong work chứ không phải là file realPID.dll. Tại sao lại như thế ah? Xin mọi người chỉ giúp.
em dùng winsp, matlab 2009b
Comment