Hightlighting data on a plot

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 日

0 投票

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?

サインインしてコメントする。

カテゴリ

質問済み:

2012 年 5 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by