status = [dosing, dosing, dosing, initializing, dosing, dosing, initializing];
I wanted to plot graph like this:

 採用された回答

Nobel Mondal
Nobel Mondal 2015 年 6 月 8 日
編集済み: Nobel Mondal 2015 年 6 月 8 日

0 投票

% 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 件)

カテゴリ

ヘルプ センター および File Exchange で Genomics and Next Generation Sequencing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by