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 次查看(过去 30 天)
显示 更早的评论
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?
采纳的回答
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 个评论
Shaik Allabakash
2022-12-18
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
2021-6-16
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To const...
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String Parsing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!