MATLAB: Making a 1D array/vector from a table

1d arraycell arraysMATLABmatrix arraysorttablevector

Hello,
I have this table or a 2D array
I want to seperate the numbers from the first column which have zero values in the third column. So in the end my result would be
x = [0; 0.0242; 0.3403]
Does anyone knows how it can be done ?

Best Answer

X = cell2mat(X_cell); % X_cell: your original cell
myVec = X(X(:, 3) == 0, 1);