Functions in Matlab 2020b

2 ビュー (過去 30 日間)
DH
DH 2021 年 4 月 29 日
コメント済み: DH 2021 年 5 月 3 日
I have many scripts that I wrote in Matlab 2018b. I just upgraded to Matlab 2020b, and when I try to run one of my scripts, I got the message:
"Attempt to exe3cute SCRIPT filter3pole as a function
Error in PLotData (line 10)
fltRtX = filter3pole(data.RS_Outputs_AC_Body_Rates_X, k, true);"
I have defined filter3pole as a function, in its own file, and that file is in the path. It worked in Matlab 2018, but not in Matlab 2020. What is the problem?
  2 件のコメント
Walter Roberson
Walter Roberson 2021 年 4 月 29 日
If you dbstop at the line with the error then what shows up for
which -all filter3pole
and what are the first few lines of filter3pole.m ?
DH
DH 2021 年 5 月 3 日
I don't know why, but now it is working as expected. In addition to upgrading to Matlab 2020b, I am also working on a new laptop. Maybe some of the laptop settings were not right. Anyway, it's working now. Thanks for your help.
David

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by