Hi, there! I am trying to overlay coordinate points on my groundwater site map, and I keep getting errors when trying the demo package from https://www.mathworks.com/matlabcentral/fileexchange/54799-convert-image-pixels-to-xy-coordinates. After downloading the demo files and running, this is what I get –
Im = imread('./Images/Plot.png');
CoordinateMatrix = pic2points(Im);
scatter(CoordinateMatrix (:,1), CoordinateMatrix (:,2),'.');
Error using imread>get_full_filename
File "./Images/Plot.png" does not exist.
I tried importing the Plot.png file into MATLAB and updating to that file path, but then it told me –
>> Im = imread('/Users/ivy/Documents/MATLAB/Plot.png');
CoordinateMatrix = pic2points(Im);
scatter(CoordinateMatrix (:,1), CoordinateMatrix (:,2),'.');
Unrecognized function or variable 'pic2points'.
Thanks so much in advance!

 Respuesta aceptada

Walter Roberson
Walter Roberson el 23 de En. de 2024

1 voto

3 comentarios

Ivy Kwok
Ivy Kwok el 23 de En. de 2024
Thanks so much! Is that this? I had downloaded it from the File Exchange but am not sure how to install it. Apologies that I'm very new to all of this!
Walter Roberson
Walter Roberson el 23 de En. de 2024
The easiest way is to install it using Add-On Explorer.
Ivy Kwok
Ivy Kwok el 24 de En. de 2024
Woohoo, it worked! Thank you so much for your help! :')

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Downloads en Centro de ayuda y File Exchange.

Productos

Versión

R2023b

Preguntada:

el 23 de En. de 2024

Comentada:

el 24 de En. de 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by