How to delete polyline from Drawpolyline matlab function
이전 댓글 표시
I have list of polyline drawn using drawpolyline matlab function.
the list contains nearly 500 polylines , now if i want to delete 10th polyline from the 500 polylline , how can i do it ?
Further , after deleting now the list should reduce to 499 polyline, can anyone help me please ?
채택된 답변
추가 답변 (1개)
Geoff Hayes
2020년 4월 28일
SatyaPrakash - if you have an array of polyline objects and you want to delete the 10th item, then you could do
delete(polylineObjects(10)); % delete the polyline object
polylineObjects(10) = []; % remove the invalid polyline object from the array
The second line of code removes it from the array, reducing the array size to 499 elements.
댓글 수: 1
SatyaPrakash Gupta
2020년 4월 29일
편집: SatyaPrakash Gupta
2020년 4월 29일
카테고리
도움말 센터 및 File Exchange에서 Timing and presenting 2D and 3D stimuli에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!