Dear Marcus, Thanks for the explanation. I was making .dat file correctly from file sink but was reading it incorrectly in Matlab. I was using fread command to read the file but it turned out specific matlab scripts (read_complex_binary.m to be exact) are to be used when parsing grc saved complex data to matlab. Sorted out the problem in the end and plotted a nice gaussian distribution.
Regards, Ammar On Apr 19, 2017 12:41 PM, "Marcus Müller" <[email protected]> wrote: > The file sink doesn't produce mat files: > > https://wiki.gnuradio.org/index.php/FAQ#What_is_the_ > file_format_of_a_file_sink.3F_How_can_I_read_files_produced_ > by_a_file_sink.3F > > On 19.04.2017 08:46, Ammar Mahmood wrote: > > Dear all, > > I am trying to save noise samples using file sink to verify that noise > follows Gaussian distribution. I mat file is made by the file sink block. > When I read this mat file in mat lab, it only shows the positive samples > and does not have negative samples whereas it should have negative samples > in order for the noise to be Gaussian. Can anybody help me out in this > process? > > > Regards, > Ammar > > > _______________________________________________ > Discuss-gnuradio mailing > [email protected]https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > > > _______________________________________________ > Discuss-gnuradio mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > >
_______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
