>>Thanks again. I am not familiar with simulink. U mean we can visually
program in GR using signal Block or widget instead of writing all code
directly?
Yes


On Thu, Jul 25, 2013 at 9:04 PM, Yingjie Chen <ocg...@gmail.com> wrote:

> Thanks again. I am not familiar with simulink. U mean we can visually
> program in GR using signal Block or widget instead of writing all code
> directly?
>
> Sent from my iPhone
>
> On 25 Jul, 2013, at 23:47, Adeel Anwar <adeela...@gmail.com> wrote:
>
>
>
>
> 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 <ocg...@gmail.com> 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
> 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

Reply via email to