How can I classify data based on two columns??
이전 댓글 표시
hi ,
I have a data as shown below, I need to classify it based on the rho and theta.
I am looking to plot complete line by extract start and end of point for lines . so i need to classfy as follw:
groups : have the same rho and inside it two groups : 1- when theta = -90 which is hirozental line.
2- when theta = 0 which is vertical line.
I have tried that but there somthing wrong which ('Index exceeds the number of array elements (19)')
could you please help me??댓글 수: 3
Image Analyst
2019년 12월 1일
Yes, if you supply your code and the exact error message. Perhaps you took a list of indexes and used it on the columns instead of the rows or something. Who knows???
Mohammed Alammar
2019년 12월 1일
Luna
2019년 12월 2일
Can you provide the data as a .mat file attached?
답변 (1개)
Luna
2019년 12월 2일
Your error caused from the line for loop. You have 19 elements but m+1 will be 20.
for m = 1:length(lines)-1
...
end
This will fix your problem.
카테고리
도움말 센터 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!