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?

1 件のコメント

nevermind i have changed the filename into data 1 and it solved itself

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

 採用された回答

Steven Lord
Steven Lord 2020 年 12 月 16 日
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 件)

Mayur Khaladkar
Mayur Khaladkar 2021 年 6 月 16 日
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To const...

カテゴリ

ヘルプ センター および File ExchangeProgrammatic Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by