matlab.unittest.fixtures.UIFigureFixture Class
R2026bNamespace: matlab.unittest.fixtures
Superclasses: matlab.unittest.fixtures.Fixture
Description
The matlab.unittest.fixtures.UIFigureFixture class provides a fixture for creating a UI figure. When the
testing framework sets up the fixture, the fixture creates a UI figure. When the framework
tears down the fixture, the fixture deletes the figure. You can use this fixture when writing
tests that require a figure created using the uifigure function.
The matlab.unittest.fixtures.UIFigureFixture class is a handle class.
Creation
Description
fixture = matlab.unittest.fixtures.UIFigureFixture constructs a
fixture for creating a UI figure.
fixture = matlab.unittest.fixtures.UIFigureFixture(Name=Value)
specifies figure properties using one or more name-value arguments. For example,
fixture = matlab.unittest.fixtures.UIFigureFixture(Visible="off")
constructs a fixture that creates an invisible UI figure, which is suitable for testing in
continuous integration (CI) environments. For more information about the supported figure
properties, see uifigure.
Properties
Examples
Version History
Introduced in R2026b