Message Boards Message Boards

0
|
1496 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Combine Position and Cases

Posted 5 years ago

How can I combine the Position and Cases functions in Mathematica? For example I have a data set and it is split into different chunks by text lines. So I used the cases function to output the lines that do not have numbers in them:

Cases[rawdata[[All, 2]], Except[_Real]]

I now want to find the position of these lines in my data set using position function like so:

Position[rawdata, Cases[rawdata[[All, 2]], Except[_Real]]]

yet this does not work. Any suggestions??

POSTED BY: Carrson Baldwin
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract