MATLAB Answers

uitable and use within a figure created with the function figure

14 views (last 30 days)
Jeffrey Beckstead
Jeffrey Beckstead on 11 Jan 2021
I have been attempting to use the function uitable to print a table on a figure generated with the "figure" command.
The table data is within the variable tableData and the function call is
figID = figure;
uitable( figID_Comb, 'Data', tableData, 'Position', [300, 400, 200, 300]);
When I use this call, I get the message
Error using uitable
Functionality not supported with figures created with the figure function. For more information, see Graphics
Support in App Designer.
The help information on the uitable functions states: uit = uitable creates a table user interface component in the current figure and returns the Table UI component object. If there is no figure available, MATLAB® calls the figure function to create one.
The error message and the help information are contradictory - I believe.

Answers (1)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi on 27 Jan 2021
Hi,
As the error message suggests, 'uitable' cannot be used with figures created using 'figure' function.
I have brought the issue related to the help function on uitable to the notice of our developers. They will investigate the matter further.

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!