How to show variables workspace in a figure?

3 ビュー (過去 30 日間)
Lucas-Raphael Müller
Lucas-Raphael Müller 2016 年 4 月 14 日
回答済み: John BG 2016 年 4 月 18 日
Hey, is there a possibility to display a certain variables workspace in a figure? I have some Dicom-variables (medical format) which are structure variables include an enormous number of fields and substructures which I'd like to display similiar to the workspace. I thought of just display the content in a table, but then I would loose the substructure. Any ideas? Thanks in advance

回答 (2 件)

John BG
John BG 2016 年 4 月 18 日
Herr Mueller, Servus
try
S=whos
S contains the workspace variables, than you can store in a .mat file or export elsewhere.
viel spas
If you find this answer of any help solving your question, please click on the thumbs-up vote link, or mark it as accepted answer
thanks in advance
John

Walter Roberson
Walter Roberson 2016 年 4 月 14 日
You can use text() or you can use annotation()
  2 件のコメント
Lucas-Raphael Müller
Lucas-Raphael Müller 2016 年 4 月 18 日
No this is not what I meant. I mean something like a list of variables and their values, dynamic like the "workspace" window would be perfect.
Walter Roberson
Walter Roberson 2016 年 4 月 18 日
You can use text() or you can use annotation(), or you can use uitable(). You can use evalc() to generate the strings to text into place or to set in the cell array that you set as the Data property of the uitable. You can call your update code under any circumstances that are appropriate.
If I need to be more explicit: there is no documented way to embed the MATLAB variable browser inside a GUI. If it can be done at all, it would have to be at the Java level.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by