フィルターのクリア

Add text/ annotation to table in figure window

4 ビュー (過去 30 日間)
Lennart Vogt
Lennart Vogt 2018 年 12 月 19 日
コメント済み: Lennart Vogt 2019 年 1 月 7 日
Hi everyone,
I am creating a figure with three tables A,B,C like
f = figure
uitable('Parent',f,'Data',A{:,:},'ColumnName',A.Properties.VariableNames,'RowName',A.Properties.RowNames,'Units', 'Normalized', 'Position',[0, 0, 1, 1/3])
uitable('Parent',f,'Data',B{:,:},'ColumnName',B.Properties.VariableNames,'RowName',B.Properties.RowNames,'Units', 'Normalized', 'Position',[0, 1/3, 1, 1/3])
uitable('Parent',f,'Data',C{:,:},'ColumnName',C.Properties.VariableNames,'RowName',C.Properties.RowNames,'Units', 'Normalized', 'Position',[0, 2/3, 1, 1/3])
Now I want to add some kind of title to each table. I tried to use 'text' and 'annotation' but those functions seem to work for graph plots only. Is there a way to add text or even titles to tables displayed in a figure window?

採用された回答

Akshay Khadse
Akshay Khadse 2018 年 12 月 27 日
As per my knowledge, text requires an axis as a parent. If its not present, an axis object will automatically get created.
In your case, you will have to use the uicontrol with Style as text to get the desired result.
Please refer the following documentation for example usage of this command:
The following documentation page for more information about controlling the appearance of the uicontrols:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by