Sunday, August 5, 2018

Re: [Discuss-gnuradio] multiply const block

On 08/05/2018 04:21 PM, Paul Boven wrote:
> Hi Linda,
>
> On 08/04/2018 10:42 PM, Linda20071 wrote:
>> Can the constant be a complex number? For example, Can I set the
>> constant to be 1.0*j, which should rotate the constellation graph by
>> 90 degrees?
>
> Yes, it can be a complex number. If you hover with the mouse over the
> field, it even says it expects a complex vector.
>
> The notation would be: a+bj, so in your case, simply 1j will suffice.
> So without the '*'.
>
> Regards, Paul Boven.
>
>
If you tend to think in degrees, I often form complex rotation constants
thusly:

(after importing math)

complex( math.cos(math.radians(d)), math.sin(math.radians(d)) )

With 'd' in degrees




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

No comments:

Post a Comment