Hightlighting data on a plot

3 visualizzazioni (ultimi 30 giorni)
ceejld
ceejld il 10 Mag 2012
Hi All,
I've got a plot of current against time. I can see on the plot that I have three points where the current is > 1.7A. I'd like to print a list of the data points (time stamp and value) where the data meets the criteria. I have data in the following format.
Array of Times : myCurrentTime
7.349393999652778
7.349393999768519
7.349393999884259
7.349394000000000
7.349394000115741
7.349394000231482
7.349394000347222
7.349394000462963
7.349394000578704
7.349394000694445
Array of Currents: myCurrentValues
Columns 1 through 6
0.025361908599700 0.025361908599700 1.871361908599700 0.024999415502000 0.024999415502000 0.025361908599700
Columns 7 through 11
0.024999415502000 0.024999415502000 0.024999415502000 0.024999415502000 0.024999415502000
Thanks in advance.
ceejld

Risposte (1)

Daniel Shub
Daniel Shub il 10 Mag 2012
myCurrentTime(myCurrentValues>1.7)
  2 Commenti
ceejld
ceejld il 10 Mag 2012
That's so easy! Thank you :-)
How do I get it to print the value as well? So I get a list of
time, value
Thanks
Daniel Shub
Daniel Shub il 10 Mag 2012
That command will "print" them to the screen. Where do you want to print them?

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by