I'm building MATLAB V.4 MEX-Files with Borland C++ 3.1 and I have some
problems using printf() and fprint() in C.
These commands work correctly with %d and %x. But for all floating-point
data-types ,for example %f, %g, these commands don't work.
Can anybody tell me where the problem is ?
Thanks,
Markus Glaser
e-mail : wi...@isw.uni-stuttgart.de
Hi,
Believe it or not, these format specifiers are not supported in 16-bit
DLLs. There is a file on our ftp server, I think called printdll,
which works around this by using a MEX-file which calls back into
MATLAB to do the formatting.
This limitation does not exist for 32-bit DLLs, which are supported
in MATLAB 5.x
HTH.
===========================================
Gary Levenson ga...@mathworks.com
The MathWorks, Inc. ph: 508 647-7000
http://www.mathworks.com
===========================================