i wanted to plot histogram for following

2 ビュー (過去 30 日間)
shivraj Krishna kumbhar
shivraj Krishna kumbhar 2015 年 6 月 8 日
編集済み: Walter Roberson 2015 年 6 月 8 日
status = [dosing, dosing, dosing, initializing, dosing, dosing, initializing];
I wanted to plot graph like this:
  1 件のコメント
shivraj Krishna kumbhar
shivraj Krishna kumbhar 2015 年 6 月 8 日
thanks a lot Nobel........

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

採用された回答

Nobel Mondal
Nobel Mondal 2015 年 6 月 8 日
編集済み: Nobel Mondal 2015 年 6 月 8 日
% Need to convert the input as a cell-array
>> status = {'dosing', 'dosing', 'dosing', 'initializing',...
'dosing', 'dosing', 'initializing'};
>> [count,states] = grp2idx(status);
>> hist(count,unique(count));
>> set(gca,'xTickLabel',states)

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by