【问题标题】:the block "complex to Arg" in gnuradiognuradio 中的“complex to Arg”块
【发布时间】:2016-02-11 02:04:54
【问题描述】:

我想在matlab的gnuradio中实现块“complex to Arg”。

我在 matlab 中使用命令angle。但有些结果与 gnuradio 中的不同。

例如,

在matlab中,

angle(1.646236600879293e+03 + 8.043715071772031e+00i) = 0.004886084452240

在 gnuradio 中,

块返回0.00294448575004935

谁能解释一下?或者给我提示一下matlab的命令。

【问题讨论】:

    标签: matlab gnuradio gnuradio-companion


    【解决方案1】:

    根据this discussion gnuradio 出于性能原因不使用 libmath atan2 函数。我相信 matlab 改用 libmath 函数。他们还说 0 或 Pi/2 的误差更大,这就是你的情况。因此 gnuradio arg 和 matlab 角度都是正确的,它们只是链接到不同的实现(atan),具有不同的性能和精度。

    【讨论】:

      猜你喜欢
      • 2017-12-14
      • 1970-01-01
      • 2017-09-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-22
      • 1970-01-01
      相关资源
      最近更新 更多