Syntax error when opening a file using a path. it says " use a newline, semicolon, or comma before this statement "

12 次查看(过去 30 天)
function data = angleAnalysis_withPlots"('C:/research bme/excel files/Participant 009-002.xlsx')";

回答(1 个)

Stephan
Stephan 2020-6-3
It is unclear what you want:
maybe you forgot to underline your variable name
function_data = angleAnalysis_withPlots('C:/research bme/excel files/Participant 009-002.xlsx')
or you wanted to define a function, then better use:
result = angleAnalysis_withPlots('C:/research bme/excel files/Participant 009-002.xlsx')
function data = angleAnalysis_withPlots(myInput)
% your code here
% some stuff like making numbers from chars
data = double(myInput);
end
  6 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Search Path 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by