Export figure to html

22 次查看(过去 30 天)
Omiros Tsioumplektsis
回答: Ixxat 2016-8-30
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 个评论
George
George 2016-8-30
Can you export the figure as an image file and have the html file reference that?

请先登录,再进行评论。

回答(1 个)

Ixxat
Ixxat 2016-8-30
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

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by