diff --git a/matlab/get_minimal_state_representation.m b/matlab/get_minimal_state_representation.m index fa2564884..1ce6da53c 100644 --- a/matlab/get_minimal_state_representation.m +++ b/matlab/get_minimal_state_representation.m @@ -253,7 +253,9 @@ function [abar,bbar,cbar,t,k] = ControllabilityStaircaseRosenbrock(a, b, c, tol) for jj = 1 : ra [uj,sj,vj] = svd(bjn1); [rsj,csj] = size(sj); - p = flip(eye(rsj),2); + %p = flip(eye(rsj),2); + p = eye(rsj); + p = p(:,end:-1:1); p = permute(p,[2 1 3:ndims(eye(rsj))]); uj = uj*p; bb = uj'*bjn1;