unexpected matlab operator on okada script

6 ビュー (過去 30 日間)
Amri Rasyidi
Amri Rasyidi 2018 年 7 月 5 日
コメント済み: Amri Rasyidi 2018 年 7 月 6 日
i tried to run Okada script from Okada
and run with the input example
[E,N] = meshgrid(linspace(-10,10,50));
[uE,uN,uZ] = okada85(E,N,2,30,70,5,3,-45,1,1,'plot');
figure, surf(E,N,uN)
and the function is
function u=uzy_ss(xi,eta,q,dip,nu)
R = sqrt(xi.^2 + eta.^2 + q.^2);
db = eta.*sin(dip) - q.*cos(dip);
yb = eta.*cos(dip) + q.*sin(dip);
u = (db.*q./R.^3).*cos(dip) ...
+ (xi.^2.*q.*A(eta,R).*cos(dip) - sin(dip)./R + yb.*q./R.^3 ...
- K2(xi,eta,q,dip,nu,R)).*sin(dip);
but then i found an error says : Error: File: okada85.m Line: 465 Column: 1 Unexpected MATLAB operator.
  5 件のコメント
Geoff Hayes
Geoff Hayes 2018 年 7 月 6 日
Amri - if I open the okada85.m (downloaded as is from the FEX) then
Note line 465. Try replacing your copy of the file with that from the FEX.
Amri Rasyidi
Amri Rasyidi 2018 年 7 月 6 日
thank you ! i got this script works now. I just redownload it from the FEX

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by