Main Content

uiexportdlg

Open figure export dialog box

Since R2025a

    Description

    uiexportdlg opens a dialog box with options for exporting the current figure (gcf). The current figure is an existing figure that has the HandleVisibility property set to "on". If no such figure exists, MATLAB® returns an error.

    example

    uiexportdlg(fig) opens a dialog box with options for exporting the specified figure.

    Examples

    collapse all

    Create a graph and open an export dialog box using uiexpordlg.

    surf(peaks)
    uiexportdlg

    Export dialog box showing export options and a preview of a graph

    Clicking Export or Cancel returns you to the command line.

    Input Arguments

    collapse all

    Figure to export, specified as a Figure object.

    Limitations

    • In MATLAB Online™, uiexportdlg only supports exporting figures to MATLAB Drive™.

    More About

    collapse all

    Version History

    Introduced in R2025a