Not enough input arguments

while running this code provided in the link below: https://in.mathworks.com/matlabcentral/fileexchange/45093-time-frequency-generalized-phase-synchrony-for-eeg-signal-analysis/content/TF%20Generalized%20Phase%20Synchrony/emd_n.m I get an error saying Not enough input arguments in line c=x(:)'; what should i do to rectify this?

回答 (1 件)

Adam
Adam 2016 年 11 月 11 日

0 投票

Are you calling it with any input arguments? This is one of those errors that is usually very self-explanatory unless it involves callbacks. That function requires two input arguments, the first of which is x. If you pass in no arguments then x is not defined so the first line that uses x will produce an error.
Don't run the code from the big green 'Run' triangle in the editor, you need to run it from a function, script or command line and pass in the arguments it requires. I have no idea what that code is for, but I would have assumed that the main input should be obvious and that you can't expect to call the function without giving it any input!

この質問は閉じられています。

質問済み:

2016 年 11 月 11 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by