Hightlighting data on a plot

3 次查看(过去 30 天)
ceejld
ceejld 2012-5-10
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

回答(1 个)

Daniel Shub
Daniel Shub 2012-5-10
myCurrentTime(myCurrentValues>1.7)
  2 个评论
ceejld
ceejld 2012-5-10
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 2012-5-10
That command will "print" them to the screen. Where do you want to print them?

请先登录,再进行评论。

类别

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