Bugs in the new update

조회 수: 1 (최근 30일)
Isabelle agostini
Isabelle agostini 2016년 6월 14일
댓글: Walter Roberson 2016년 6월 16일
Hi,
I've been experiencing bugs in the 2016a update of Matlab. When I open and run a certain script, which worked fine in the previous edition, I keep getting errors that I'm using undeclared variables such as '%U23' and '%U440'. I keep adding code to clear these in the top, however, it just keeps adding these random variables every I open the program. Let me know if you have any suggestions on a solution to my problem!
Thanks in advance,
Isabelle
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 6월 14일
Please post the script and an exact copy of one of the error messages.
Which language edition of MATLAB are you using? Is any of your code written using non-English characters ?

댓글을 달려면 로그인하십시오.

채택된 답변

Isabelle agostini
Isabelle agostini 2016년 6월 14일
Error using Simulink.findVars Invalid variable name '%Ucd8'. Names must follow the same rules as MATLAB variable names
Error in UnusedVariables (line 20) unusedVars = Simulink.findVars('CompleteServo_x_System','FindUsedVars',false,'SourceType', 'base workspace');

추가 답변 (2개)

Andreas Goser
Andreas Goser 2016년 6월 14일
As th "%" is for comments, I wonder if you are talking about MATLAB code in the first place. But as Walter said, the more specifc, the better.
In general, please make sure bugs are reported to MathWorks support. Even if you get workarounds in this user forum, it is important to makes sure MathWorks Development consistenly knows about bugs.
  댓글 수: 6
Isabelle agostini
Isabelle agostini 2016년 6월 14일
I put that line in after I had been told there was a variable with that name somewhere, to get rid of the error... And the characters don't actually show up, Matlab just gives me an error in the command window saying they do
Guillaume
Guillaume 2016년 6월 14일
As per Walter's earlier comment please post the entire error message that get displayed, not your interpretation of it.
Also, what is the output of
who

댓글을 달려면 로그인하십시오.


Isabelle agostini
Isabelle agostini 2016년 6월 16일
Exactly... my point is that it has to be a bug because of the '%', since it shouldn't matter what I type after since it would be a comment... and clearly not part of the code which is why it's really annoying. How can I report it to Mathworks?
  댓글 수: 2
Steven Lord
Steven Lord 2016년 6월 16일
Use the "Contact Us" link in the upper-right corner of this page.
Walter Roberson
Walter Roberson 2016년 6월 16일
I think it likely that the file is corrupted or being read as if it is corrupted, and that the % notation is encoding of characters and not actually present anywhere.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by