# Reg : .mat to .bin conversion

**URL:** <https://www.ruby-forum.com/t/reg-mat-to-bin-conversion/223647>\
**Category:** GNU Radio\
**Created:** [October 12, 2012, 9:45am UTC](https://www.ruby-forum.com/t/reg-mat-to-bin-conversion/223647 "2012-10-12T09:45:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [October 12, 2012, 9:45am UTC](https://www.ruby-forum.com/t/reg-mat-to-bin-conversion/223647/1 "2012-10-12T09:45:23Z")

</div>

Hi, I have recorded some WCDMA data using gnuradio and USRP2 which is in  
.bin  
format (fc32).Then I used octave to read that bin file and converted to  
.mat  
file so that it can be imported into MATLAB. I did some processing on  
that  
data. Now I want that .mat file to be converted back to .bin file. I  
searched but couldn’t succeed. Any pointers ?  
I posted on matlab community but no reply so far

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/Reg-mat-to-bin-conversion-tp37966.html](http://gnuradio.4.n7.nabble.com/Reg-mat-to-bin-conversion-tp37966.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![sumitstop](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@sumitstop](https://www.ruby-forum.com/u/sumitstop)\
**Post date:** [October 12, 2012, 3:08pm UTC](https://www.ruby-forum.com/t/reg-mat-to-bin-conversion/223647/2 "2012-10-12T15:08:30Z")

</div>

Use “fwrite”

Evan M. - 575-640-5582

---

<div class="post-metadata">

**Author:** ![sumitstop](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@sumitstop](https://www.ruby-forum.com/u/sumitstop)\
**Post date:** [October 14, 2012, 7:15am UTC](https://www.ruby-forum.com/t/reg-mat-to-bin-conversion/223647/3 "2012-10-14T07:15:27Z")

</div>

Yeah it worked , although there are significant truncation errors …

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/Reg-mat-to-bin-conversion-tp37966p37990.html](http://gnuradio.4.n7.nabble.com/Reg-mat-to-bin-conversion-tp37966p37990.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).
