Function Generation Error (Not enough input arguments)

2 ビュー (過去 30 日間)
Burak Karaosmanoglu
Burak Karaosmanoglu 2017 年 11 月 10 日
回答済み: Mischa Kim 2017 年 11 月 10 日
I was trying to generate a function, but repeatedly faced the same error that I could not figure out on my own. What I was doing is to simply create a parabolic function with the algorithm below:
function [y] = deneme(x)
y = x.^2;
end
The error message is "Not enough input arguments. Error in deneme (line 2) y = x.^2;"

採用された回答

Mischa Kim
Mischa Kim 2017 年 11 月 10 日
Store the function in a file called deneme.m and then execute in the MATLAB command window
y = deneme(3)

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by