How to get Graphs in Publish

9 views (last 30 days)
Jamie
Jamie on 6 Mar 2013
What can I do so that when I publish a matlab file the html output has my graphs in it? For some of these graphs I have a script uused to plot them, some I don't.
Thanks

Answers (1)

Sean de Wolski
Sean de Wolski on 6 Mar 2013
%%Publish me
plot(1:10);
If you are curious why some might now be publishing, it may be because publish only takes snapshots at the end of a section or after a call to snapnow. Thus to this won't print the first two plots:
for i=1:3
imagesc(magic(i))
snapnow
end
But this will
%%publish me
for i=1:3
imagesc(magic(i))
snapnow
end
And for more info:
doc snapnow
  4 Comments
Jamie
Jamie on 7 Mar 2013
Sorry I can't, this work goes towards my results so anything I post here will come up when checked for plagerism.
Sean de Wolski
Sean de Wolski on 7 Mar 2013
Edited: Sean de Wolski on 7 Mar 2013
Then contact technical support :)

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!