histogram
古いコメントを表示
I have an array which want to plot its histogram. the range of values are from 0 to 7. I want to put a text for eahc x value. I am getting the following error message:
??? Error using ==> mtimes Integers can only be combined with integers of the same class, or scalar doubles.
Error in ==> hist at 78 xx = miny + binwidth*(0:x);)
5 件のコメント
Oleg Komarov
2011 年 6 月 30 日
You did not include the code which generates the error.
Paulo Silva
2011 年 6 月 30 日
Hassan wants us to use our magic balls on all his questions
Hassan
2011 年 7 月 1 日
Drew Steen
2011 年 7 月 1 日
When I define array1 as
array1=rand(200,400);
I don't get an error - although the x-tick labels show up in a way that I don't think you want. There are 10 x bins by default, and you seem to have 7 categories.
Do you need to do this at the command line? If you can use PlotTools, that is an easier way to reset x tick labels
Hassan
2011 年 7 月 1 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!