Select points with boundary
显示 更早的评论
I have a matrix of 2D points like trajectory = [1,1; 1,2; 2,3; 3,4; 4,5; 5,5]
I want to limit it in a square of (0,0), (4,4), (0,4), (4,0).
Is there a way I can delete some rows out of the boundary and get the new trajectory = [1,1; 1,2; 2,3; 3,4]?
I know it is possible to do it in a lot of if statements. Is there a easy way to do that?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!