Main Page | Report this Page
 
   
Science Forum Index  »  Math - Numerical Analysis Forum  »  conversion of .MAT data files to .DAT files
Page 1 of 1    
Author Message
zengiz
Posted: Mon Dec 18, 2006 7:08 am
Guest
i would like to knw about the conversion of . MAT data files to .DAT
files.MATLAB have header format ,which is required to be read for the
conversion.suggestions are required for C code to read this header
format and also suggestions required for the conversion of . MAT data
files to .DAT files.
Peter Spellucci
Posted: Mon Dec 18, 2006 7:08 am
Guest
In article <1166440085.913711.184910@f1g2000cwa.googlegroups.com>,
"zengiz" <ravi.hazarika@gmail.com> writes:
Quote:
i would like to knw about the conversion of . MAT data files to .DAT
files.MATLAB have header format ,which is required to be read for the
conversion.suggestions are required for C code to read this header
format and also suggestions required for the conversion of . MAT data
files to .DAT files.


why not reading .mat in matlab and writing back as .dat using fprintf?
hth
peter
Steven Lord
Posted: Mon Dec 18, 2006 10:36 am
Guest
"zengiz" <ravi.hazarika@gmail.com> wrote in message
news:1166440085.913711.184910@f1g2000cwa.googlegroups.com...
Quote:
i would like to knw about the conversion of . MAT data files to .DAT
files.MATLAB have header format ,which is required to be read for the
conversion.suggestions are required for C code to read this header
format and also suggestions required for the conversion of . MAT data
files to .DAT files.

If you have the most recent version of MATLAB, look at the "Importing and
Exporting Data" chapter in the External Interfaces documentation:

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/

If you have an older version, you should look at the version of this
documentation included with your version of MATLAB. I don't know if or how
this documentation or functionality changed in recent versions.

Since as far as I know DAT files are not a standard format, you're on your
own when it comes to writing the code to write those files -- it'll need to
be specific to how you want to format your DAT files.

--
Steve Lord
slord@mathworks.com
zengiz
Posted: Thu Dec 21, 2006 4:39 am
Guest
Gone through the importing and exporting .MAT file chapter and found
one c code for reading the header format but encountering a problem
with #include "mat.h" header .its not taking it.even we have included
in our folder.platform we have used for the code is VC++.please suggest

On Dec 18, 7:36 pm, "Steven Lord" <s...@mathworks.com> wrote:
Quote:
"zengiz" <ravi.hazar...@gmail.com> wrote in messagenews:1166440085.913711.184910@f1g2000cwa.googlegroups.com...

i would like to knw about the conversion of . MAT data files to .DAT
files.MATLAB have header format ,which is required to be read for the
conversion.suggestions are required for C code to read this header
format and also suggestions required for the conversion of . MAT data
files to .DAT files.If you have the most recent version of MATLAB, look at the "Importing and
Exporting Data" chapter in the External Interfaces documentation:

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/

If you have an older version, you should look at the version of this
documentation included with your version of MATLAB. I don't know if or how
this documentation or functionality changed in recent versions.

Since as far as I know DAT files are not a standard format, you're on your
own when it comes to writing the code to write those files -- it'll need to
be specific to how you want to format your DAT files.

--
Steve Lord
s...@mathworks.com
 
Page 1 of 1       All times are GMT - 5 Hours
The time now is Fri Nov 21, 2008 1:50 am