Error in app designer

조회 수: 62(최근 30일)
Vahid Abolhasannejad
Vahid Abolhasannejad 2020년 4월 20일
댓글: Vahid Abolhasannejad 2021년 4월 7일
I have faced an error in my code like it says
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.
on the following statement:
% Component initialization
methods (Access = private)
It's a solid statement at the end of code and I cannot change it at all. Does anybody know how to fix this problem? since it doesn't allow me to run the program.
Thank you.
Vahid.
  댓글 수: 7
Vahid Abolhasannejad
Vahid Abolhasannejad 2021년 4월 7일
Hello Walter, thank you for your comment. That part I mentioned was among the defauls of the code that could not be changed. So the problem was solved. Thanks again for your help.

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

답변(1개)

Ganesh Regoti
Ganesh Regoti 2020년 4월 28일
Hi Vahid,
By the error statement, I would say it might be a syntactical error. Go through the code to check if it is properly formatted and ended. Regarding the solid statements,
  1. When you create an app from app designer, there is a default code generated based on the components which is non-editable.
  2. When you add callbacks, properties, methods, an editable area is created with declarations where you can edit/add your code.
Here are the links you refer to for more information
Hope this helps!
  댓글 수: 1
Vahid Abolhasannejad
Vahid Abolhasannejad 2021년 4월 7일
Hello Ganesh, thank you for your comment. That part I mentioned was among the defauls of the code that could not be changed. So the problem was solved. Thanks again for your help.

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

Community Treasure Hunt

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

Start Hunting!

Translated by