Home > Net >  getpts MATLAB returns unrecognized function or variable 'getpts'
getpts MATLAB returns unrecognized function or variable 'getpts'

Time:06-17

i'm trying to use getpts to choose points in the current figure using the mouse. However, when i run it, i'm getting the error "unrecognized function or variable 'getpts'."

Here's my code

for i=1:n
  im = imread([read_path 'IMG_' num2str(i t) '.jpg']); %Get image 
  figure
  imshow(im)
  [x,y] = getpts; %returns error
end

Any idea why that's happening? Note: I'm using the free trial version of Matlab

I'd appreciate the help!

CodePudding user response:

From the docs menu

In your trial installation of MATLAB you likely don't have this toolbox. You might know from the install process, or you could check whether the toolbox folder exists in the installation directory, e.g.

install dir

  • Related