How to get Graphs in Publish
9 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
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
See Also
Categories
Find more on Directed Graphs 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!