この質問は閉じられています。 編集または回答するには再度開いてください。

Not enough input arguments. Need help please.

1 ビュー (過去 30 日間)
Muhammad Sufiyan
Muhammad Sufiyan 2015 年 4 月 29 日
終了済み: MATLAB Answer Bot 2021 年 8 月 20 日
Again with the same problem, I can't seem to find the solution to this problem. Can anyone find the solution to this problem.
function [kurtosis_1] = feature1(data,fs)
b = fir1(100,2*cutoff/fs,'high',chebwin(101));
kurtosis_1= kurtosis(data);
Error using feature1 (line 3)
Not enough input arguments.
  5 件のコメント
Jan 2015 年 5 月 4 日
Please, Muhammad, be so kind and tell us, which is the "line 3". It cannot be "cutoff=100;", so I guess that there is an empty line anywhere? What is "data"? Is it a function handle?

回答 (2 件)

Stephen23 2015 年 5 月 4 日
編集済み: Stephen23 2015 年 5 月 4 日
The green button on the toolbar runs code, but does not (by default) provide any arguments. You can use its default behavior for running:
  • functions that do not require any input arguments
  • scripts
Or you can alter the button's behavior by clicking Run just under the button and defining the code to get run:

Christiaan 2015 年 4 月 29 日
Dear Muhammad,
It seems that the function "feature1" needs more then two arguments. If you type in the MATLAB prompt:
>> edit feature1.m
You find the source code of feature1.m. Here you can see how many (and which) additional arguments you need.
Kind regards, Christiaan
  2 件のコメント
Christiaan 2015 年 5 月 4 日
Dear Muhammad,
Since feature1.m is a hand made code, please copy the source code of feature1.m in this forum. How this can be done, is described in my answer from before.
Kind regards, Christiaan

Community Treasure Hunt

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

Start Hunting!

Translated by