Azzera filtri
Azzera filtri

data mining and rejection againt a range in variables

1 visualizzazione (ultimi 30 giorni)
Hi there, I was given this code and I have no idea how to work it, so let me explain what it is expected from it:
An existing code spits out 3 variables ("tel_m", "dt_xD" and "dt_yD")
Tel_m contains 1 column with 180 entries[numbers(ie. 20,140, 534, 953, etc..)].
dt_xD contains 1 column with 80k odd entries (x coordinates).
dt_yD is the same but for y coordinates.
I need to write a code to do the following:
>read "tel_m"
>use the numbers found in "tel_m" and find the corresponding row in files "dt_xD" and/or "dt_yD" and check the value that is found in those rows (so if "tel_m" says 20;140;534;953, the code should go to rows 20, 140, 534, 953 in "dt_xD")
>if the value found in the row is not within a range (which I am yet to specify), reject that row entry.
>recompile a new "tel_m" (call it "true_m" or whatever)with only the non-rejected entries.
I don't really know matlab much but am expected to deal with this. I do not what anyone to simply give me a working solution, I would appreciate if someone could guide me to one instead.
Attached is the script used to produce the variables I mentioned and one of the 2 necessary data files. One of the files used by the script is too large for this(11 mb), so if required, I will find another way to share on request.
PS:the script has an error in line 51 even when using the data files I have, but that's okay as I don't need the rest of it past that point.(also, adjust path as needed)

Risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by