Can we convert a jpg or png image into a fig file via Matlab?

51 次查看(过去 30 天)
If we have a *.jpg or *.png image and we want to convert it to *.fig image using MATLAB code, how will we do it?

回答(1 个)

David Hill
David Hill 2022-10-19
a=imread('yourImage.jpg');
b=figure;
imshow(a);
saveas(b,'b.fig');
  1 个评论
Sadiq Akbar
Sadiq Akbar 2022-10-19
Thank you very much dear David Hill for your kind response. Indeed it worked and is very interesting. Now how will I plot my own data plot on this converted Matlab fig file?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Import, Export, and Conversion 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by