How do i convert an image plot to a matrix.
29 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (3 件)
Ben11
2014 年 11 月 21 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!