I’m putting this here because this is a chemistry usage but it’s not really a chemistry-specific case.
I have an array that has a bunch of states formatted like this:
1.0 1.0 0.0 1.0 0.0 1.0 6380.35
1.0 1.0 1.0 1.0 0.0 1.0 6316.91
2.0 1.0 1.0 2.0 0.0 2.0 6444.27
2.0 1.0 2.0 1.0 0.0 1.0 11086.5
For any given line, 1:3 is a description of one state, 4:6 is the description of a second state, and 7 is the frequency of the difference.
I have created a list of all the states (which is all the values 1:3 and 4:6 listed in an nx3 array) and of all the unique states, and I need to identify which states only appear once in the list. However,
findall(isequal(unst[1,:]), states[1:3,:])
Is not working – it provides an empty Cartesian index
CartesianIndex{2}
Preferably, I would be able to find the index of every unique state in the overall nx7 list. Does anyone know how to do this?
Thanks!