MATLAB Answers

How to convert .mat file to png format?

52 views (last 30 days)
Rida Memon
Rida Memon on 22 Feb 2020
Commented: Sindar on 24 Feb 2020
How to convert .mat file to png format?

  0 Comments

Sign in to comment.

Answers (1)

Sindar
Sindar on 24 Feb 2020
This is not generally possible. mat files store variables, not images. This is like asking "how do I convert a flashdrive into a png?" It is not sensible. If you have more information about a specific problem, we might be able to help

  4 Comments

Show 1 older comment
Sindar
Sindar on 24 Feb 2020
To be clearer than I was:
You cannot convert a .mat to a .png
There is a decent chance that you have a mat-file with data in it that could be plotted, or that corresponds to an image, but that is entirely dependent on the particular file. Where did you get the mat-file? When you select it in the "Current Folder" tab, what displays in the preview tab below?
Jeremy Pazuelo
Jeremy Pazuelo on 24 Feb 2020
There are the .mat file I'm talking about and my draft code
My goal is to be able to remove the skull (colored orange/yellow)
Sindar
Sindar on 24 Feb 2020
This sounds like a completely separate question. When you Ask it, include your code in a code block and attach the mat-file. Also, specify what is and is not working

Sign in to comment.

Sign in to answer this question.