Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
publish behavior when outputting

Subject: publish behavior when outputting

From: Petr Krysl

Date: 9 Dec, 2012 21:55:15

Message: 1 of 1

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
        % plot
        figure; plot (1,1,'o');%something
        % plot
        figure; plot (2,2,'x'); %other
    % for 1
    % for 2

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")?



Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us