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

47 visualizaciones (últimos 30 días)
Sadiq Akbar
Sadiq Akbar el 19 de Oct. de 2022
Comentada: Sadiq Akbar el 19 de Oct. de 2022
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?

Respuestas (1)

David Hill
David Hill el 19 de Oct. de 2022
a=imread('yourImage.jpg');
b=figure;
imshow(a);
saveas(b,'b.fig');
  1 comentario
Sadiq Akbar
Sadiq Akbar el 19 de Oct. de 2022
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?

Iniciar sesión para comentar.

Categorías

Más información sobre Import, Export, and Conversion 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!

Translated by