Clear Filters
Clear Filters

Export figure to html

22 views (last 30 days)
Omiros Tsioumplektsis
Omiros Tsioumplektsis on 27 Aug 2016
Answered: Ixxat on 30 Aug 2016
Hello everyone! I've got a mini project on Matlab and I need some small help.
I need to export a figure from my file, but in an html format. If I publish it saves the code inside as well. Is there a figure to html command, that will save it in a file? I'd prefer if with this way I could also determine the resolution with which the image is exported, as it has to be high quality. Also is there a way to make the figure not pop up? When I run my script, I don't want to see the figure poping up every time, but I need it to be saved in the html file.
Unfortunately the manual solution isn't an option for me, otherwise it be very easy. The reason is that I need to add this in an automated function, where the html file is constantly replaced by the new file.
Thanks a lot for your time. Any help is more than welcome :)
  1 Comment
George
George on 30 Aug 2016
Can you export the figure as an image file and have the html file reference that?

Sign in to comment.

Answers (1)

Ixxat
Ixxat on 30 Aug 2016
To make the figure not pop up be sure to put a semi-colon (;) at the end of the line
If you don't absolutely have to have the figure in html, you could export to jpeg, paint etc. In the figure pop up window, select file, Export Setup then Export

Categories

Find more on Printing and Saving in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!