unhelpful error message when an 'end' is left off, or an extra one is left in while editing

2 ビュー (過去 30 日間)
When editing a matlab function I am writing, I occasionally make an error (gasp). When that involves leaving in an extra or leaving out a needed 'end', the error message is unhelpful. It says:
Local function name must be different from the script name.
I found that baffling until I got used to it (I make mistakes more than once).
Could it not be improved?

採用された回答

Cris LaPierre
Cris LaPierre 2025 年 2 月 27 日
You should submit feedback like this directly to MathWorks.

その他の回答 (1 件)

jkr
jkr 2025 年 2 月 28 日
編集済み: Walter Roberson 2025 年 2 月 28 日

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by