フィルターのクリア

Do you see any errors?

1 回表示 (過去 30 日間)
Zach Dunagan
Zach Dunagan 2017 年 12 月 9 日
編集済み: Zach Dunagan 2017 年 12 月 11 日
I am nearly finished with the code I am converting just trying to figure out a plot and then I need to figure out how to save multiple plots to a folder. The plot I am looking at depends on a function file. The function files are attached as well as the primary script. If you go to line 339 of the primary Matlab script you will see a comment. XvorPosGlobal doesn't match the output of the Python. I have an image that shows both the output of Python and Matlab.
If you look at the function file VortexPointOnPt I don't see anything wrong with it if looking at the Python. Here is Python for VortexPointOnPt...
def VortexPointOnPt(xc,yc,xVorPos,yVorPos,theta):
theta_im=np.arctan2(yc-yVorPos,xc-xVorPos)
r1=((xVorPos-xc)**2+(yVorPos-yc)**2)**(1/2)
tVP=-np.sin(theta-theta_im)/(2*np.pi*r1)
nVP=-np.cos(theta-theta_im)/(2*np.pi*r1)
return tVP,nVP
Do you see any difference between the codes? I don't see anything wrong.
  2 件のコメント
Walter Roberson
Walter Roberson 2017 年 12 月 9 日
Zach Dunagan
Zach Dunagan 2017 年 12 月 10 日
編集済み: Zach Dunagan 2017 年 12 月 10 日
Okay thank you Walter. I will be sure to tag appropriately in future questions.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by