another try [first][1] did not work out well. want filter set of values a subsets fit constraints. , after filter these subset more subsets new constraints. , one. problem don't want use find more once on whole set a. , 1 time on subset.
anddue fact matrices t b etc can 600x600 dont want search twice find():
indices=find(t=.....)
t(indices)=...
- t(~indices)=...
i want:
input: a=[100 200 300; 400 500, 1000; -150000, -300000 -2] - b=[3 3 3; 2 2 2; -1e9 -1e8 -1] - first step: a(indices)=find(a<20000 , b >= 2] - a(indices)=[100 200 300; 400 500; 1000] - a(~indices)=[-150000, -300000, -2] - b(~indices)=[-1e9 -1e8 -1] - second step: - indices_2=find(b(~indices)>-130000) - a(~indices(indices_2))=[desired value] but cant use logic because a(~indices) gives me values , not position without find. want use find() 1 time per set split. not twice.
Comments
Post a Comment