-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathposiAllcand.m
55 lines (34 loc) · 874 Bytes
/
posiAllcand.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
function reFa=posiAllcand(candS,transitionMatrixS)
temp=combvec(candS{1,1}(:,7)',candS{1,2}(:,7)',candS{1,3}(:,7)',candS{1,4}(:,7)',candS{1,5}(:,7)',candS{1,6}(:,7)',candS{1,7}(:,7)',candS{1,8}(:,7)',candS{1,9}(:,7)',candS{1,10}(:,7)',candS{1,11}(:,7)');
temp=temp';
teU=0;
cl=[];
for uu=1:size(temp,1)
for tr=1:size(temp,2)-1
t=temp(uu,tr);
tP=temp(uu,tr+1);
if transitionMatrixS(t,tP)==0
teU=uu;
cl=[cl;teU];
break;
end
end
end
tempCol=0;
Col=[];
A=[1:1:size(temp,1)];
allLine= setdiff(A,cl);
allLine=allLine';
reFa=[];
for yi=1:size(allLine,1)
reBef=temp(allLine(yi,1),:);
reFa=[reFa;reBef];
end
% for rea=1:size(temp,1)
% if ismember(rea,cl)==0
% tempCol=temp(rea,:);
% Col=[Col;tempCol];
% end
% end
temp;
return