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

12 ビュー (過去 30 日間)
EA
EA 2020 年 6 月 3 日
コメント済み: Stephan 2020 年 6 月 3 日
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 件のコメント
EA
EA 2020 年 6 月 3 日
nope. added a screenshot of the line in the previous reply if you didnt see that already
Stephan
Stephan 2020 年 6 月 3 日
Edited my previous comment

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

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by