How to allow a single overlap during chain growth?
Show older comments
I have this code which doesn't allow any overlaps between chain segments. How can I modify it to allow a single overlap only.
Trajectory = [x+1 y;x-1 y;x y+1;x y-1];
check=reshape(old_steps(:,i),2,m/2)';
position=setdiff(Trajectory,check,'rows');
4 Comments
You may know what 'chain segment', 'chain growth', 'overlap' means for your code. The majority of us don't.
You've posted some code that has no useful comment (comments that explain what the code is doing, what the inputs and outputs are and what each variable is) so it's really unclear what is yiu're asking.
Soma
on 3 Nov 2019
Guillaume
on 3 Nov 2019
Can there be any duplicate row in Trajectory?
Soma
on 3 Nov 2019
Accepted Answer
More Answers (0)
Categories
Find more on Biological and Health Sciences in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!