Why do I get the error"Not enough input arguments."
显示 更早的评论

when I press the "Run" button,it shows: >> qqqq Not enough input arguments.
Error in qqqq (line 13) t0=t-t1;
回答(2 个)
is a function which needs input t...So when you are running it it is demanding t. But on looking at the script t is already defined inside. So comment the line function [lambda, phi] = qqqq(t) (first line), run it as a script not a a function. Note that you have to remove end when you run it as a script.
Or simply change
function [lambda, phi] = qqqq(t)
to
function [lambda, phi] = qqqq()
5 个评论
hengheng zhang
2016-9-19
hengheng zhang
2016-9-19
KSSV
2016-9-19
You input some t ..it will run..but I cannot promise the result unless it is known what for code is meant.
hengheng zhang
2016-9-19
Guillaume
2016-9-19
0 个投票
You appear to have a mixture of a script and a function in the same file. Unless you're using the just released R2016b, this is not going to work.
On R2016a, or earlier, move the script (from the start of the for loop) in its own file and run it from there.
On R2016b, move the script before the function and terminate the function with the end keyword.
类别
在 帮助中心 和 File Exchange 中查找有关 ROI-Based Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!