# How to convert python file in dat file

**URL:** <https://www.ruby-forum.com/t/how-to-convert-python-file-in-dat-file/228588>\
**Category:** GNU Radio\
**Created:** [April 29, 2013, 1:09pm UTC](https://www.ruby-forum.com/t/how-to-convert-python-file-in-dat-file/228588 "2013-04-29T13:09:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![omero72](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/2acd7d/32.png) [@omero72](https://www.ruby-forum.com/u/omero72)\
**Post date:** [April 29, 2013, 1:09pm UTC](https://www.ruby-forum.com/t/how-to-convert-python-file-in-dat-file/228588/1 "2013-04-29T13:09:50Z")

</div>

hi, i wantto convert python file into dat file in order to load in  
matlab.

---

<div class="post-metadata">

**Author:** ![omero72](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/2acd7d/32.png) [@omero72](https://www.ruby-forum.com/u/omero72)\
**Post date:** [April 29, 2013, 3:27pm UTC](https://www.ruby-forum.com/t/how-to-convert-python-file-in-dat-file/228588/2 "2013-04-29T15:27:42Z")

</div>

On Mon, Apr 29, 2013 at 7:08 AM, Omer O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> hi, i wantto convert python file into dat file in order to load in matlab.

Omer,

This isn’t a GNU Radio question. We don’t really do Matlab support on  
this  
mailing list. I’m sure there’s some information about how to do this  
elsewhere.

Tom

---

<div class="post-metadata">

**Author:** ![omero72](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/2acd7d/32.png) [@omero72](https://www.ruby-forum.com/u/omero72)\
**Post date:** [April 30, 2013, 1:04am UTC](https://www.ruby-forum.com/t/how-to-convert-python-file-in-dat-file/228588/3 "2013-04-30T01:04:25Z")

</div>

If you want to load files into Matlab which you saved for example  
through a  
file sink, you can do that via the command fread. Check the  
documentation of  
it. For the correspondences between Matlab and GNU Radio Type, compare  
the  
fread documentation and this site of J.Blum:  
[http://www.joshknows.com/gnuradio#datatypes](http://www.joshknows.com/gnuradio#datatypes)

Regards

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/how-to-convert-python-file-in-dat-file-tp41048p41061.html](http://gnuradio.4.n7.nabble.com/how-to-convert-python-file-in-dat-file-tp41048p41061.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).
