I've been using the publish feature a lot lately, but the figures it produces are absolutely lousy. Is there a way to tell publish to use export_fig? My only workaround now is exporting manually after running publish, then overwriting the figures generated by publish.

답변 (1개)

Sean de Wolski
Sean de Wolski 2014년 8월 20일

1 개 추천

You could export_fig to save it to a file and then use the image markup tag to add it to the published report.
export_fig('.\html\pica.png') % save to html directory
close % make sure it's not there to be snapped

댓글 수: 3

Chad Greene
Chad Greene 2014년 8월 22일
That's a clever solution. Is there a way to suppress the export_fig and close lines from appearing in the output html? I'd like to give the reader a final html document with content that doesn't get obfuscated by extra little lines that make the publishing work. Artifacts like export_fig and close seem equivalent to STOP in a telegram. Charming, perhaps, but a bit distracting.
Sean de Wolski
Sean de Wolski 2014년 8월 22일
I don't know of anyway outside of turning off code capture altogether.
Sean de Wolski
Sean de Wolski 2014년 8월 22일
If you're publishing to html, you could probably regexp the file after. I do this to remove the contents section on my blog posts.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기

질문:

2014년 8월 20일

댓글:

2014년 8월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by