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 swallows results ???

Subject: publish swallows results ???

From: per isakson

Date: 14 Apr, 2010 03:12:04

Message: 1 of 1

I have problems with PUBLISH. Publish doesn't capture all outputs, which are displayed in the command window when I execute the file cell by cell (clicking <Evaluate cell and advance>). I have move the cell around, but I allways miss the output from one cell. In the example below it is the last cell.

What mistake do I do?

My first serious effort to use PUBLISH - might explain the trouble;)

/ per

====================================
Excerpt from m-file
%%
% This call should display the fields of the resulting name/value structure
ipp_examplefun( magic(10), 'Viscosity', 2, 'Pie', pi, 'Description','Hello world' )
%%
% This call should demonstrate an error
ipp_examplefun( magic(9) )
%%
% Another error
ipp_examplefun( rand(10), 'vis', 10, 'pie', 3, 'Description','Hello world' )


====================================
Copy&Paste from the resulting html-file

This call should display the fields of the resulting name/value structure
ipp_examplefun( magic(10), 'Viscosity', 2, 'Pie', pi, 'Description','Hello world' )

The resulting name/value structure has the following fields:
           Data: [10x10 double]
    Description: 'Hello world'
            Pie: 3.1416
      Viscosity: 2
         Volume: 1


This call should demonstrate an error
ipp_examplefun( magic(9) )

Error using ==> ipp_examplefun at 19
Argument 'Data' failed validation with error:
Expected input to be of size 10x10 when it is actually size 9x9.

Error in ==> InputPreprocessor_demo at 86
ipp_examplefun( magic(9) )


Another error
ipp_examplefun( rand(10), 'vis', 10, 'pie', 3, 'Description','Hello world' )

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