フィルターのクリア

I dont know why i keep getting an Invalid operator

3 ビュー (過去 30 日間)
Amanda
Amanda 2022 年 11 月 1 日
回答済み: Steven Lord 2022 年 11 月 1 日
Everytime I run this I keep getting an error for the first line but I dont understand why

回答 (1 件)

Steven Lord
Steven Lord 2022 年 11 月 1 日
See the "Syntax for Function Definition" section on this documentation page. When you define a function the input arguments must be specified as variable names. Those name the variables in the body of the function into which the values the function's caller passes as input arguments will be stored. In that section note that the input arguments in the definition are one, two, and three not 'one', 'two', and 'three'.
'filename' is not the name of a variable. filename (no quotes) is the name of a variable.
When you call the function, that's when you can pass in a value like 'filename'.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by