matlab challenge- searching range of data to see if certain values exist

2 Ansichten (letzte 30 Tage)
Michael
Michael am 18 Mai 2011
please see the abov elink for a visual of my issue.. basically the values in the 3rd and 4th columns exist because there was an update. this is also because of both of the values of "0" in the 7th and 8th columns one row down. i need to be able to search a document for all instances where either of these occur, and i wanted to do this by choosing an interval time range of data from the 1st column and seeing if these values are what i am looking for. keep in mind that the actual data i have is long and there will be about 40 different cases of this. the end goal is to figure out all the times where this update occurs. any idea how to tackle this?? i am so stuck and any help at all would be much appreciated. thanks in advance.

Antworten (1)

Oleg Komarov
Oleg Komarov am 18 Mai 2011
  1. Import the file with xlsread (is that an xlsx?)
  2. Convert dates into serial dates
  3. Use logical indexing/ismember to locate the range of interest
  4. Again use logical indexing on 3rd and 4th column

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by