Hello, I've created a struct and I would like describe it graphically in the documentation of my code. Is there a way to generate such a figure using Matlab? Possibly by selecting the depth(sub level) of the struct to display?
thanks for any help. I'm really to avoid using powerpoint to describe my struct.

1 件のコメント

Cedric
Cedric 2014 年 6 月 13 日
How may structs do you have to describe, how deep is their content, is it mixed type/class (other structs, cell arrays, etc)?
.. and how much time are you ready to spend for developing a new tool?

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

回答 (1 件)

Star Strider
Star Strider 2014 年 6 月 13 日

1 投票

The cellplot function may be as close as you can get. Nothing analogous exists for structures, but with some imagination, you can probably use a graphics editor (Paint) or the Image Processing Toolbox or even using subplot to arrange them to your requirements. There’s also a diagram of what you might want to do (though not created by MATLAB) in the ‘Access Data in Nested Structures’ documentation that could work as a sort of template for what you want to do.

カテゴリ

ヘルプ センター および File Exchange で Structures についてさらに検索

タグ

質問済み:

2014 年 6 月 12 日

コメント済み:

2014 年 6 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by