plotting data into an image with plot function
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello everyone I got the following problem.
I loaded an image into MatLab now the image has a matrix of 720x752x3
I have a Data matrix that is 10x2
I want to plot the datapoints into my image but when I use normal plot I get an error that my data has more than 2 dimensions. Does anyone have an idea how to fix that?
Thanks for helping me
8 comentarios
Respuestas (1)
Adam Danz
el 27 de Mzo. de 2019
I'm guessing that you want to plot the coordinates listed in C on top of the image.
I = imread('test.png');
imshow(I)
axis on %this will show you the axis ticks; note the y axis is reversed!
hold on
plot(C(:,1), C(:,2), 'bx')
2 comentarios
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!