Not Enough input Arguments
1 次查看(过去 30 天)
显示 更早的评论
Hi everyone, im trying to my final project and need a little bit help. İ looked below link and and downloaded it. in the winrar document there is a stft extension matlab file. i opened and runned it but in running it gives me "not enough input arguments" i tried everything and cannot do anything. how can i fixed it and whats the fixed version? thank you
0 个评论
回答(2 个)
Jan
2016-1-16
How did you run the function? By pressing the "Run" button in the editor? Then you call the function without inputs arguments.
The file "example.m" in this submission contains code, which explains how this function is called correctly:
% perform STFT
[s, f, t] = stft(x, wlen, h, nfft, fs);
Unfortunately the author did not apply the standard documentation style, such that "help stft" does not show the help section, but you can open the file in the editor and read the explanations.
0 个评论
Walter Roberson
2016-1-17
You need to expand the entire .zip into a directory that is not otherwise used and which is not part of the MATLAB installation directories. Then in MATLAB, use the command pathtool to add that directory to the MATLAB path. After that you will be able to invoke stft at the command line or in your code the way Jan describes. The function requires input arguments so you will not just be able to click on Run or press F5 to run it.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Transforms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!