필터 지우기
필터 지우기

How to generate graph for variable names?

조회 수: 1 (최근 30일)
Katrina Anderson
Katrina Anderson 2018년 11월 26일
댓글: Katrina Anderson 2018년 11월 26일
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
Walter Roberson
Walter Roberson 2018년 11월 26일
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() ?
Katrina Anderson
Katrina Anderson 2018년 11월 26일
I have a cell array of 'standing' 'step' 'weightshifting' in this particular dataset. I will eventually have a few more.
No i havent. I will look that up now

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by