Why MATLAB on Mac reads functions as scripts instead of functions?

4 ビュー (過去 30 日間)
Brianna Miranda
Brianna Miranda 2022 年 7 月 14 日
コメント済み: Bruno Luong 2022 年 7 月 14 日
Whenever I attempt to call on a function in my script I get an error stating "Execution of script rd_segy as a function is not supported" but this function is saved as a function and not a script in MATLAB. This keeps randomly happening, and yes I am certain that the function is actually a function and not a script. How do I fix this issue? All of the codes I'm using were created using my mac. I also am able to run the scripts without receiving this error when I use my windows pc.
  3 件のコメント
Torsten
Torsten 2022 年 7 月 14 日
And it works under Windows ?
Bruno Luong
Bruno Luong 2022 年 7 月 14 日
If you type
which rd_segy
when the error occurs what do you get?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by