Error: Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

i have a file named 2p23heart1. I try to define the first colum.
>> load 2p23-heart1
>> frequency = 2p23-heart1(:,1):
frequency = 2p23-heart1(:,1):
Error: Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other
syntax error. To construct matrices, use brackets instead of parentheses.
i do not get why it gives me this error. Can you please help me out?

 채택된 답변

Variable names in MATLAB are not allowed to contain the - character. Nor are they allowed to start with a digit. See the documentation for the isvarname function for a list of other restrictions.

댓글 수: 1

Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

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

추가 답변 (1개)

Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To const...

카테고리

도움말 센터File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

질문:

2020년 12월 16일

댓글:

2022년 12월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by