对Matlab不是很熟悉,在这个Matlab atan2 函数上出现了问题。

         百度知道上的解释是这样的:

atan2() 区别于 atan() 函数,返回 -pi~+pi 范围的角度;
使用过程中发现在 MATLAB 和 Excel 中该函数的表达形式不一致,故记录如下。
- Excel
定义atan2(x,y) 返回点 (x,y) 与 x 轴正向的夹角;
即在第一象限中 atan2(x,y) = atan(y/x).
- Matlab 与 CFX CEL
定义 atan2(y,x) 返回点(x,y)与x轴正向的夹角;
即在第一象限中 atan2(y,x) = atan(y/x).
-------------------------------------------
故点(3,4)与x轴的夹角分别表达如下:

Excel :atan2(3,4)=0.927295218
Matlab:atan2(4,3)=0.9273




相关文章:

  • 2021-12-19
  • 2022-12-23
  • 2021-07-13
  • 2021-09-01
  • 2022-12-23
  • 2022-01-18
  • 2021-12-10
猜你喜欢
  • 2022-01-19
  • 2022-01-31
  • 2022-12-23
  • 2021-11-19
  • 2021-07-03
  • 2022-12-23
相关资源
相似解决方案