Error using feature_vec (line 8) Not enough input arguments.
1 view (last 30 days)
Show older comments
sujit on 7 Nov 2014
Answered: David Sanchez on 7 Nov 2014
when run The Seven Invariant Moments code is show Error using feature_vec (line 8) Not enough input arguments. where is the error
David Sanchez on 7 Nov 2014
The error is that you are not calling the function with enough arguments. For example, if you call you function feature_vec like this:
where a and b are variables within your code
but the feature_vec is defined like this:
it expects at least 3 input arguments, and when you call it with just two, it returns the error you receive. Take a look at the definition of your feature_vec function and make sure you use it properly.
Find more on Construct and Work with Object Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!