The variable might not be in thesame workspace. If you defined it at the command prompt then it would be in the "base" workspace rather than in the function's workspace. Youcan retrieve variables from the base workspace:
evalin('base', 'kinect_image')
but almost always a better way is to pass the variable to the function.
Best Answer