"Error: This statement is incomplete" on a comment line

I do not understad why Matlab is evaluating a comment, and further complaining that it is not complete. Even if I delete line 39, it gives the same error for 38, and so on. I have restarted Matlab and the same thing occurs. Any tips?
Thanks in advance.

6 件のコメント

Chunru
Chunru 2021 年 6 月 21 日
Try 'dbstop error' and show the line before and after.
KSSV
KSSV 2021 年 6 月 21 日
Copy and paste code here....image snippet will not help us.
Stephen23
Stephen23 2021 年 6 月 21 日
You are probably missing an END at the end of a FOR loop, or something similar.
As you did not show us the complete code, we can only guess. If you want more help, show us the complete code as text.
Luisana Rodriguez Sequeira
Luisana Rodriguez Sequeira 2021 年 6 月 21 日
Thank you all! As I was getting ready to share the whole code I found a line with a missing delimiter which was allowing matlab to evaluate the proceeding comments... after closing this it works as expected!
Al
Al 2023 年 3 月 16 日
What do you mean "closing this?"

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

 採用された回答

Walter Roberson
Walter Roberson 2021 年 6 月 21 日
編集済み: Walter Roberson 2021 年 6 月 21 日

0 投票

In the code before the commends, you have a [ or { that is not closed by the corresponding ] or }

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDebugging and Improving Code についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by