Re: [Discuss-gnuradio] Import GNURadio data to matlab

2018-06-28 Thread Markus Wirsing
There exists a small utility function for this purpose in the gnuradio
sources.
It can be found here:
https://github.com/gnuradio/gnuradio/blob/master/gr-utils/octave/read_float_binary.m

Either use it directly, or as an example how to do it.

Markus

Am 23.06.2018 um 16:40 schrieb PRIYANKA PRIYADARSHINI:
> Hello Everyone,
> 
> How can we import the data stored in a file by GNURadio to MATLAB using fread 
> and fseek function??
> 
> Thanks,
> Priyanka 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Import GNURadio data to matlab

2018-06-23 Thread CEL
Dear Priyanka,

um, the whole point of that article is that you need to give the third
parameter, the kind of date (Matlab docs erroneously call this
precision, it's really the data type):

fopen(your_filename_here, 'rb', 'float')

The fact that you're even asking about quotes around the file name
might indicate you're not very used to working with matlab - which is
totally fine! However, we're really not the forum to teach you basic
Matlab, and there's literally thousands of Matlab tutorials out there,
so save yourself a lot of time and read one of them :)

Best regards,
Marcus

On Sat, 2018-06-23 at 17:42 +0200, PRIYANKA PRIYADARSHINI wrote:
> Thanks Mr. Leech,
> 
> I have already seen this but when I use 
> 
> f = fopen(filename, 'rb'); 
> 
> It gives me an error saying “undefined variable or class”. When I
> write the filename as ‘filename’ which is under single quotes then it
> works but it takes some very weird data. It doesn’t load the same
> data as it was stored from GNURadio.
> 
> Thanks!
> 
> 
>  
> > On 23 Jun 2018, at 17:28, Marcus D. Leech 
> > wrote:
> > 
> > https://adamgannon.com/2014/11/18/gnuradio_offline_pt1/
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Import GNURadio data to matlab

2018-06-23 Thread Marcus D. Leech

On 06/23/2018 11:42 AM, PRIYANKA PRIYADARSHINI wrote:

Thanks Mr. Leech,

I have already seen this but when I use

f = fopen(filename, 'rb');

It gives me an error saying “undefined variable or class”. When I 
write the filename as ‘filename’ which is under single quotes then it 
works but it takes some very weird data. It doesn’t load the same data 
as it was stored from GNURadio.


Thanks!



Well, in that case, this is a MATLAB question, unrelated to Gnu Radio



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Import GNURadio data to matlab

2018-06-23 Thread PRIYANKA PRIYADARSHINI
Thanks Mr. Leech,

I have already seen this but when I use 

f = fopen(filename, 'rb'); 

It gives me an error saying “undefined variable or class”. When I write the 
filename as ‘filename’ which is under single quotes then it works but it takes 
some very weird data. It doesn’t load the same data as it was stored from 
GNURadio.

Thanks!


 
> On 23 Jun 2018, at 17:28, Marcus D. Leech  wrote:
> 
> https://adamgannon.com/2014/11/18/gnuradio_offline_pt1/ 
> 
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Import GNURadio data to matlab

2018-06-23 Thread Marcus D. Leech

On 06/23/2018 10:40 AM, PRIYANKA PRIYADARSHINI wrote:

Hello Everyone,

How can we import the data stored in a file by GNURadio to MATLAB using fread 
and fseek function??

Thanks,
Priyanka
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

There's a nice tutorial here:

https://adamgannon.com/2014/11/18/gnuradio_offline_pt1/



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio