Hi Sapio,
This error is sometimes produced if you don't have the right toolbox installed for the function. You can try typing following in the command window:
help invertedImageIndex
If it prompts you to have certain toolbox for the function to work, install the toolbox through the link provided.
Hope this will be useful!
