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 ?

 Akzeptierte Antwort

Ive J
Ive J am 23 Jan. 2021
Bearbeitet: Ive J am 23 Jan. 2021

1 Stimme

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

Weitere Antworten (0)

Kategorien

Produkte

Version

R2019a

Gefragt:

am 23 Jan. 2021

Bearbeitet:

am 23 Jan. 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by