I have a cell array with different types of data and I would like to cellplot

3 ビュー (過去 30 日間)
Ahmed Hossam
Ahmed Hossam 2017 年 4 月 26 日
編集済み: Stephen23 2017 年 4 月 28 日
When I plot my cell array, even if there are just double values, I get to see only the structure of that array, but not all the values.
Mind though, if there is just one number in a cell, it will be plotted, but if I have a 2x2-matrix for example, it just shows me four red quadrilaterals with nothing inside, but red color.
Is it possible to plot the double values, so I can see them all? ... How? ... Thank you for your help!
  3 件のコメント
Ahmed Hossam
Ahmed Hossam 2017 年 4 月 28 日
to see the numbers?
Ahmed Hossam
Ahmed Hossam 2017 年 4 月 28 日
ok, it's maybe a silly questions, but it would be nice, if I just could print the numbers inside the cells of the cellplot diagramm ...

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

採用された回答

Stephen23
Stephen23 2017 年 4 月 28 日
編集済み: Stephen23 2017 年 4 月 28 日
The function cellplot is written in an Mfile, which means that you could make a copy (for your own personal use only) and edit it. Obviously it is copyright by MATLAB, so I will not post it here, but adapting that function is quite trivial:
  1. Make a copy in your working directory with a different name: e.g. mycellplot.
  2. Add a breakpoint, run with your data, step through to see how it plots the data.
  3. Edit the file by adding text calls where appropriate, with the text that you want to display.
Alternatively you could call cellplot and return the handles, then try and figure out all of the children and their positions and try and figure out which data they apply to. This might not be as trivial as it sounds.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by