i wanted to plot histogram for following

1 vue (au cours des 30 derniers jours)
shivraj Krishna kumbhar
shivraj Krishna kumbhar le 8 Juin 2015
status = [dosing, dosing, dosing, initializing, dosing, dosing, initializing];
I wanted to plot graph like this:

Réponse acceptée

Nobel Mondal
Nobel Mondal le 8 Juin 2015
Modifié(e) : Nobel Mondal le 8 Juin 2015
% 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)

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by