How do you find data points that match a specific value?
24 views (last 30 days)
I have a data set (data.tib) that has x, y and z coordinates in columns 1, 2, and 3, respectively. I want to find all unique z values so I used "uz = unique(data.tib(:,3));". For each z-axis position, I want to count how many x-y coordinates there are for each unique z. I was thinking of using "length()" to count how many and then some variation of the "find()" command.
Cris LaPierre on 10 Nov 2021
I would use groupsummary. If you group by z, the resulting table automatically contains a group count.
data = table(x,y,z);
out = groupsummary(data,'z')