How to generate graph for variable names?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a 285768x1 cell containing 3 different variables 'standing' 'step' .. which each represent a behaviour at every 1/500s. I am wanting to visualise this data by labelling each behaviour accordingly somehow. Im not sure how I can do this. Is there a way to find each variable in the cell, label it and plot it on a line grah with a colour?
Thankyou for your time :)
2 commentaires
Walter Roberson
le 26 Nov 2018
You have a cell array of character vectors, the entries of which can be 'standing', 'step', and one other particular character vector? Or the character vectors contain those phrases in part, such as perhaps 'subject is standing', 'took a step', 'went back to standing' ?
Have you considered categorical() ?
Réponses (0)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!