for index = 1:PacketLength
PacketWithFreqOffset(index) =
Packet(index)*exp(i*2*pi*fΔ*SampleRate*index);
end
So is above implementation in matlab similar to that in Gnuradio?
No. GNURadio implementation resembles Simulink instead of Matlab. Just
think how can u add freq-offset in Simulink and replicate that in GNURadio
-Adeel
On Thu, Jul 25, 2013 at 8:41 PM, Yingjie Chen <[email protected]> wrote:
> Thanks for you reply, Adeel. I am still confused in implementation.
> I have done simulation before in matlab. In matlab, timebase index can
> refer to each element in signal vector.
> Please refer to following code for illustration, fΔ refers to freq.
> offset, index refers to time index, Packet is signal vector, SampleRate =
> 1/20Mhz
>
> for index = 1:PacketLength
> PacketWithFreqOffset(index) =
> Packet(index)*exp(i*2*pi*fΔ*SampleRate*index);
> end
>
> So is above implementation in matlab similar to that in Gnuradio?
>
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio