Skip to content

Instantly share code, notes, and snippets.

Created November 7, 2013 13:44
Show Gist options
  • Save anonymous/7354768 to your computer and use it in GitHub Desktop.
Save anonymous/7354768 to your computer and use it in GitHub Desktop.
MBN ex 2
pre = [0 1 0 0 1;
1 0 0 0 0;
0 1 0 0 0;
0 0 1 0 0;
0 0 0 2 0;
0 0 0 0 1;
0 0 1 0 0;
0 0 0 1 0];
post = [1 0 0 0 0;
0 1 0 0 1;
0 1 1 0 0;
0 0 1 1 0 ;
0 0 0 0 1;
0 0 0 2 0;
0 0 0 0 0;
0 0 0 0 0];
A = post - pre
S = A';
r = [5 0 4 10 0 0 0 3]'
M = [0 1 2 10 12]'
disp('Transition M* = M + S*r')
M + S*r
y = [1 1 0 0 0]'
disp('P-invariance: A*y=0')
A*y
x1 = [1 1 0 0 0 0 0 0]'
x2 = [0 0 0 0 1 1 0 0]'
disp('S*x1')
S*x1
disp('S*x2')
S*x2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment