MATLAB Answers

How to display units in table in a GUI?

16 views (last 30 days)
Jouni Lindqvist
Jouni Lindqvist on 30 Oct 2019
Answered: Subhadeep Koley on 5 Nov 2019
It used to be possible to make a second row in a table header. This was useful for writing out units, for example. This does not seem to be possible in the app designer apps. Is there another way to display units in a table in a GUI made in app designer?
Thank you in advance

  0 Comments

Sign in to comment.

Answers (1)

Subhadeep Koley
Subhadeep Koley on 5 Nov 2019
Hi Jouni,
It seems not possible to add a second row in the table header in App Designer. Also, when you create a table in app designer. It gets created under uifigure parent and column names are restricted to one line of text. Therefore, you cannot add a second line for the units / examples also.
But when you create a table directly without specifying any parent (using the uitable() function) then default parent is a MATLAB figure and the uitable is created for which column name property supports "|" to get the multi-line column name, where the second line can be used for the units / examples.

  0 Comments

Sign in to comment.

Sign in to answer this question.

Products


Release

R2019a