webfigure

Export a figure to a deployed application

Syntax

  • exportFigure = webfigure(h)

Description

exportFigure = webfigure(h) exports the figure identified by the handle h to a deployed application for use as a WebFigure. How the deployed application manages the exported figure is specific to the target language. The WebFigure feature is support by Java® and .NET.

Examples

Export a Figure

function returnFigure = getWebFigure()
        h = figure;
        set(h, 'Visible', 'off');
        surf(peaks);
        set(h, 'Color', [.8,.9,1]);
        returnFigure = webfigure(h);
        close(h);

Input Arguments

collapse all

h — handle of the figure to be exportedfigure handle

Specify the figure to be exported as a figure handle.

Output Arguments

collapse all

exportFigure — exported figurestructure

Specifies the exported figure in a language specific structure.

Introduced in R2008a

Was this topic helpful?