How do i convert an image plot to a matrix.
18 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I was wondering if it was possible to create a matrix out of a figure plot.
I would be grateful for any help. Thanks.
0 comentarios
Respuestas (3)
Leslie Solorzano
el 16 de Dic. de 2016
https://se.mathworks.com/help/matlab/ref/frame2im.html
0 comentarios
Ben11
el 21 de Nov. de 2014
Maybe I misunderstood but you might want to use getframe and get the cdata property:
Example:
x = -10:10;
y = x.^2;
plot(x,y)
Frame = getframe(gcf)
FrameData = Frame.cdata; %// This is a matrix that you can plot/show with imshow.
0 comentarios
Ver también
Categorías
Más información sobre Convert Image Type 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!