how to remove certain elements in 2D array?

1 次查看(过去 30 天)
i have a variable 'c' in size of 4x2 c=[4 2; 5 3; 3 6; 4 7;] and another variable 'd' in size of 2x2 d=[4 2; 3 6;]. Compare two variables( c and d)and remove elements of 'd'variable in Variable 'c' and how get final output F=[5 3; 4 7;]?

采纳的回答

Andrei Bobrov
Andrei Bobrov 2016-2-18
编辑:Andrei Bobrov 2016-2-18
F = setdiff (c, d, 'rows')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by