Hello,
I'm using a gnuradio to stream I/Q samples from a USRP and trying to run the generated binary files through an algorithm written on matlab. While I was able to to extract the I/Q samples using read_complex_binary, run them through the algorithm, and create a vector with the previous I/Q samples only modified due to the algorithm, I cannot read those binary files using gnuradio. i added a path to where my data and the functions are stored but I'm not quite sure how to use the write_complex_binary function. Part of my code:
%add path to where data is stored at:
addpath('/home/DAta');
ant1=read_complex_binary('input1');
nsamps=length(ant1(:,1));
%some algorithm
out1=zeros(nsamps,1);
for j=1:nsamps
out1(j,1)=ant1(j,1)*w(1);
end
write_complex_binary(out1,'output1')
I ploted the out1 vector and I see it can modify it but I'm not really sure how to use the write_complex_binary function. I've tried using the fclose and fopen matlab functions but nothing seems to work.
Hopefully someone can help me.