I think this is cross-posted from here: http://stackoverflow.com/questions/31498869/extract-values-from-arrayany-in-julia The text file is not in a standard format, so readdlm inserts a bunch of #undef elements into the resulting matrix. It's not really a problem with findfirst.
On Sunday, July 19, 2015 at 6:52:42 PM UTC+1, Mauro wrote: > > > I have a text file containing special characters, text and some numbers > and > > I need to extract from it some values which appear every n-th row. Since > > the file has around 20k rows, I want the algorithm to find first and > next > > rows. I've read text file to matrix with readdlm(), but the type of > array > > is ANY, and findfirst() gives and error "access to undefined reference". > > Could you give me some guidance, please? Regards Mike > > It would be helpful if you post a minimal example which can be > copy-pasted into the REPL and shows the error you get. >
