Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: publish behavior when outputting
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Petr Krysl

Posts: 73
Registered: 1/9/08
publish behavior when outputting
Posted: Dec 9, 2012 4:55 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello all,

I have a function that I'd like to publish, top. There is a nested function inside top that produces printed output and two images. Let us say

function top
function f(arg)
%%
% print
disp('a');
%%
% plot
figure; plot (1,1,'o');%something
%%
% plot
figure; plot (2,2,'x'); %other
end

%%
% for 1
f(1);

%%
% for 2
f(2);

end


Now instead of the three outputs placed in the published HTML file in the order in which they are produced in the function f (note that there are two calls to this function), I get twice the printed output followed by two figures with "something" and two figures with "other".

Is this behavior controllable? Can I change this so that I get
for each call to the function the three outputs listed sequentially ("a", "something", "other")?

Thanks,

Petr



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.