入力引数が足りない原因が分かりません
219 views (last 30 days)
Show older comments
コードは以下の通りです。
function e = func1(p, x, y)
e = (p(1)*exp(-((x-p(2))/p(3)) ^2) + p(4)) - y;
end
エラーコードは以下の通りです。
入力引数が不足しています。
エラー: func1 (行 3)
e = (p(1)*exp(-((x-p(2))/p(3)) ^2) + p(4)) - y;
使用環境
R2020b
mac64i
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on 変数のスコープ指定と名前の生成 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!