Error: Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.
73 views (last 30 days)
Show older comments
Bayram Akpinar
on 16 Dec 2020
Commented: Shaik Allabakash
on 18 Dec 2022
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?
Accepted Answer
Steven Lord
on 16 Dec 2020
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 Comment
Shaik Allabakash
on 18 Dec 2022
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.
More Answers (1)
Mayur Khaladkar
on 16 Jun 2021
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To const...
0 Comments
See Also
Categories
Find more on String Parsing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!