How to convert the following jpg file to matlab.fig file
조회 수: 22 (최근 30일)
이전 댓글 표시
Chris Martin
2015년 10월 28일
댓글: Shashank Chandrasekaran 16BEE0334
2018년 8월 25일
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151078/image.jpeg)
댓글 수: 0
채택된 답변
Wanbin Song
2015년 10월 28일
As my understanding of your question, it is pretty simple as below:
img = imread('~~.jpg');
imshow(img);
savefig('~~~.fig');
댓글 수: 4
추가 답변 (1개)
Muhammad Khan
2018년 5월 29일
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.
댓글 수: 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!