hello everyone. Now I have compiled a program code to extract the data from the dotted line. But the code has run in a state, I hope you can help to see where the error is. Thank you very much.
Show older comments
CODE:
idx2= MO(:,1)>=min(xx) & MO(:,1)<=max(xx) & MO(:,2)>=centroids(:,2); %The range between abscissa of A1 and A2 is the boundary, which is divided into left and right parts; Note: the center of mass is inside the dune.
dataC=MO(idx2,:);
xx4=dataC(:,1);
yy4=dataC(:,2);
[h,p]=min(yy4);%point_B
B=[xx4(p),h];
ERRO:dataC=[ ]


5 Comments
Wesley
on 25 May 2021
Shubham Khatri
on 31 May 2021
Hello,
Can you share the code and elaborate your problem?
Thanks
Wesley
on 31 May 2021
darova
on 5 Jun 2021
Can you rotate your data?
Image Analyst
on 5 Jun 2021
What does "the code has run in a state" mean?
And please give all the code including where MO, xx, centroids, etc. get defined.
What is a "dune"? You mean like a windswept pile of sand?
No we don't see the error because you forgot to post it. Post ALL THE RED TEXT. As of now, only Walter has the Crystal Ball Toolbox to see it.
Here is another chance to read the posting guidelines to make it easy for us to help you (not hard):
Answers (0)
Categories
Find more on Elementary Math in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!