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 supported 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

Specify the figure to be exported as a figure handle.

Output Arguments

collapse all

Specifies the exported figure in a language specific structure.

Introduced in R2008a

Was this topic helpful?