MATLAB Answers

How do i convert an image plot to a matrix.

조회 수: 97(최근 30일)
ronald
ronald 21 Nov 2014
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

로그인 to comment.

답변(3개)

Leslie Solorzano
Leslie Solorzano 16 Dec 2016
https://se.mathworks.com/help/matlab/ref/frame2im.html

  댓글 수: 0

로그인 to comment.


Image Analyst
Image Analyst 21 Nov 2014
You can use export_fig

  댓글 수: 0

로그인 to comment.


Ben11
Ben11 21 Nov 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

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by