Code runs without workspace variables appearing

13 ビュー (過去 30 日間)
Samuel Scheufler
Samuel Scheufler 2017 年 10 月 5 日
回答済み: Walter Roberson 2017 年 10 月 6 日
I'm encountering various issues with my matlab programming. For example I can run my script, but the workspace will remain blank. Occaisionally, I will be told that the expresson on the left of an equal sign is invalid, even when its a rather standard variable name such as BridgeNum. On other occasions I will get an error on my script telling me that 'if' is an invalid use of a reserved word, despite that very same code functioning perfectly before I added a csvwrite command. I believe my program must have gotten infected with some kind of malware, but I dont know how to identify it or how to rectify it.
  1 件のコメント
James Tursa
James Tursa 2017 年 10 月 5 日
This question is way too vague for us to answer. Please post a specific example of code that is not working for you, along with a copy & paste of the entire error message.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 10 月 6 日
"Occaisionally, I will be told that the expresson on the left of an equal sign is invalid, even when its a rather standard variable name such as BridgeNum."
In my experience, the most common cause of that is that a close ] has been missed.
"On other occasions I will get an error on my script telling me that 'if' is an invalid use of a reserved word, despite that very same code functioning perfectly before I added a csvwrite command."
possibly you missed a close ' on the file name.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by