How to convert the following jpg file to matlab.fig file

Hi, I am trying to convert this .jpg file to matlab.fig file. I try with imread(*.jpg) and then imagesc(:,1:end). It do display the fig but with a red colour all over the image. Please help me

 Akzeptierte Antwort

Wanbin Song
Wanbin Song am 28 Okt. 2015
As my understanding of your question, it is pretty simple as below:
img = imread('~~.jpg');
imshow(img);
savefig('~~~.fig');

4 Kommentare

I tried with this but it does not work, it displays unsupported dimension, please download the jpg file and try
I tested with your file and confirmed it. What do you mean 'unsupported dimension'?
It works....Thank you
Thank you so much!!! It worked for me.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Muhammad Khan
Muhammad Khan am 29 Mai 2018

0 Stimmen

I am using this code to convert .jpg file to maltab .fig but in matlab lab file there is no figure represented and if I want to convert more than one .jpg files to fig how can I. I am attaching two files.

Kategorien

Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by