%EXPORTAPP exports contents of a figure from app to pdf or raster formats
%   EXPORTAPP(fig, filespec) saves the figure contents from an app created
%   either with App Designer or the uifigure function. Specify fig as the
%   figure. Specify filespec as the name of a pdf or image file with a file
%   extension. You can also include a full or relative path as part of the
%   filespec. EXPORTAPP supports creating PNG, JPEG, and TIFF images, and
%   PDF vector formats.
%
%   Example: Export a figure created with the uifigure function to a PNG:
%   fig = uifigure;
%   exportapp(fig,'example.png');
% 
%   Example: Export a figure created with the uifgure function to a PDF:
%   fig = uifigure;
%   exportapp(fig,'example.pdf');
% 
%   Example: Export a figure created with the uifgure function to a JPEG file:
%   fig = uifigure;
%   exportapp(fig,'example.jpg');
% 
%   Example: Specify a full path to a JPEG file:
%   exportapp(fig, 'C:\Users\John\Desktop\example.jpeg');
%
%   See also GETFRAME, EXPORTGRAPHICS

 
%   Copyright 2020-2022 The MathWorks, Inc.

