i need plot a graph

2 views (last 30 days)
Rafi Leo
Rafi Leo on 4 Sep 2018
Answered: Steven Lord on 4 Sep 2018
i need plot a graph
my data is
0.1s - 48aa 49aa 50aa 10aa ,
0.2s - 50bb 15aa 10bb ,
0.3s - 48bb 10aa 49bb 20aa ,
0.4s - 10bb 20bb ,
in this data aa- means ON state, bb - means OFF state based on numbers i.e 48,49,50,10
and 0.1, 0.2, 0.3, 0.4 this is time how can i plot graph by using above data How can i plot graph pls help me
thanks in advance
  3 Comments
Rafi Leo
Rafi Leo on 4 Sep 2018
iam also a bit confused about this task, let me tell about the data first
this data is generated by the hardwarw system, here "aa" -ON "bb"-OFF next 48,49,50,10,15,20 these are lights
idon't konw how to draw graph for this data
if any possiable ways are there let me know
jonas
jonas on 4 Sep 2018
Edited: jonas on 4 Sep 2018
Usually you at least have some kind of vague idea in your mind of what you want the graph to look like. If not, and someone simply told you to make a graph from this data, then I don't think anyone on this forum can help you. You need to first figure out what the purpose of this graph is.
Am I right to assume this is homework?

Sign in to comment.

Answers (1)

Steven Lord
Steven Lord on 4 Sep 2018
I second jonas's confusion. Can you sketch out (with pencil and paper, marker and whiteboard, or even stick and sandbox) how you want the graph to look and post a picture of that sketch? That sketch might help us better understand what you're trying to do.
If you can't provide a sketch, I'm afraid the only suggestion I can give is very general. Look through the Plots tab for a graph whose sample looks like what you want to do. Once you've found that graph, hover over that image for information on the function used to create it.

Community Treasure Hunt

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

Start Hunting!