- I think by Structure(1)-Structure(2) = true you really mean that you want to check that the sizes are equal... Am I right?
- I think by Structure(1)=Structure(1)+Structure(2) you are really refereeing to some other operation... concatenation maybe?
Structure problem? How to write a loop to solve it?
1 次查看(过去 30 天)
显示 更早的评论
I have a 1x N Structure called Structure.data
Structure(1).data and Structure(i).data have different dimensions.
I want Structure(1).data minus Structure(2:i).data;
tempcon=(abs(bsxfun(@minus,Structure(q).result',Structure(l).result)));
and see those value from subtraction contains the certain value.
If it is, combine it to new Structure and use the new Structure to do the subtraction
and so on.
In short, Structure(1)-Structure(2)= true; Structure(1)=Structure(1)+Structure(2) and use Structure (1) -Structure(3) ...until Structure(i) after combine the useful Structure into Structure(1) Store it.
And use the left Structure to subtract any Structure. group it again
until all the Structures are grouped..
How to write a loop about this?
4 个评论
Image Analyst
2014-8-14
I didn't go over this in detail, but are you trying to do connected components labeling, like what bwlabel() or bwconncomp() does?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!