how can i solve this error: "index exceeds matrix dimensions"
Show older comments
i am trying the code from file exchange but getting is error: Index exceeds matrix dimensions. Error in Zernikmoment
Product = p(x,y).*Rad.*exp(-1i*m*Theta);
Error in Zernikmain
[mom, amplitude, angle] = Zernikmoment(BW2,4,0);
help me solving this error
3 Comments
dpb
on 1 Jul 2018
We can't tell from only that and you don't even say which FEX code.
The first expression p might be an array but x,y are while not illegal, somewhat unusual variable names for array indices; sure it isn't a missing function?
In the second, it's pretty clear that Zernikmoment(BW2,4,0) is being interpreted as an array reference instead of a function which would tend to indicate you either haven downloaded the full submission or got it installed in a location on the Matlab path so all the m-files are being found the submission needs.
Walter Roberson
on 1 Jul 2018
They included a link to the FEX code.
dpb
on 1 Jul 2018
Ah...it had scrolled off the screen...
Accepted Answer
More Answers (0)
Categories
Find more on Mathematics 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!