From: Steven Lord on

"James Tursa" <aclassyguywithaknotac(a)hotmail.com> wrote in message
news:g3bbnf$q42$1(a)fred.mathworks.com...
> "Jeff Boehmer" <cervelosolo1(a)yahoo.com> wrote in message
> <g3b916$p1q$1(a)fred.mathworks.com>...
>> So I'm brand new to Matlab and relatively new to C. How
>> exactly do I compile my C program in Matlab? I understand
>> that I have to use a mex command to turn the program into an
>> executable, but I also need to change the data types to be
>> compatible with Matlab? I think there are C-mex or C-mx
>> routines to deal with the data types.
>>
>> I'm trying to learn this stuff from various sources on the
>> web, but it's hard when I don't totally know what I'm doing
>> in the first place! The reason I'm doing this is so that I
>> can run the code on a windows machine.
>>
>> Thanks for the help in advance!
>
> You can start with the Mathworks online doc for this:
>
> http://www.mathworks.com/support/tech-notes/1600/1605.html?BB=1

In addition to the MEX-Files Guide James linked to, I suggest the OP type
"doc matlab" without the quotes at the prompt, then expand the "External
Interfaces" item in the tree on the left-hand side of the Help Browser. One
of the items should be titled "Creating C Language MEX-Files" or something
similar (depending on the version of MATLAB you're using) -- that talks
about the components and layout of C MEX-files.

[OP = Original Poster, in this case Jeff.]

--
Steve Lord
slord(a)mathworks.com