rbmatlab  1.13.10
 All Classes Namespaces Files Functions Variables Groups Pages
RBcheck.m
Go to the documentation of this file.
1 function res = RBcheck(RB,G,NOS)
2 %function res = RBcheck(RB)
3 % => Ergebnis RB' * G * RB = eye;
4 % check result
5 
6 
7 
8  check=[];
9  check=RB'*G*RB; %should be eye(NOS);
10  %trace_check=trace(check); %should be NOS
11  %matrix_check=sum(sum(check)); %should be NOS
12  err = max(max(abs(check - eye(NOS))));
13 
14  if err < 1e-6
15  %disp('RB passed');
16  res=1;
17  else
18  %disp('RB problem');
19  res=0;
20  end