Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Mat files in C programs

Subject: Mat files in C programs

From: ulugeyik@mail1.sas.upenn.edu (Turgut Durduran)

Date: 25 May, 2001 01:01:28

Message: 1 of 2

I am trying to read/write mat files in C programs. I think that would be
the most efficient way for me to load data in and out of matlab.

However, the matlab external interfaces documentation is horrible. It
gives only very simple examples. I could not locate a better
tutorial/book anywhere.

Any suggestions?

Also, is there a way to create .mat files in C programs on computers that
do not have matlab installed? i.e run my C program on the parallel
processors, create the mat files and read them in matlab?

Thanks a lot for your help in advance.

my e-mail address is below.

turgut


--

-----------------

d u r d u r a n @
m a i l . s a s . u p e n n . e d u

-----------------
www.stwing.upenn.edu/~durduran/

Subject: Mat files in C programs

From: Jeff Mather

Date: 25 May, 2001 09:37:07

Message: 2 of 2

Hi Turgut,

The matcreat.c example in $MATLAB/extern/examples/eng_mat/ should give you an
idea of what it takes to create MAT-files from C. Then use the API reference
at
<http://www.mathworks.com/access/helpdesk/help/techdoc/apiref/apiref.shtml>
for more information about individual mat* and mx* functions.

You don't need to have MATLAB installed to use MAT-files. Take a look at the
following solution on our web site for more details:

<http://www.mathworks.com/support/solutions/data/8757.shtml>

Have fun!

Jeff Mather
Image Processing Group
The MathWorks, Inc.
jmather@mathworks.com


Turgut Durduran wrote:

> I am trying to read/write mat files in C programs. I think that would be
> the most efficient way for me to load data in and out of matlab.
>
> However, the matlab external interfaces documentation is horrible. It
> gives only very simple examples. I could not locate a better
> tutorial/book anywhere.
>
> Any suggestions?
>
> Also, is there a way to create .mat files in C programs on computers that
> do not have matlab installed? i.e run my C program on the parallel
> processors, create the mat files and read them in matlab?
>
> Thanks a lot for your help in advance.
>
> my e-mail address is below.
>
> turgut
>
> --
>
> -----------------
>
> d u r d u r a n @
> m a i l . s a s . u p e n n . e d u
>
> -----------------
> www.stwing.upenn.edu/~durduran/
>

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us