Merge branch 'minimal_state_space_test_suite_old_matlab' into 'master'

Fix minimal state space test files for old matlab

See merge request Dynare/dynare!1700
time-shift
Sébastien Villemot 2020-01-26 16:00:03 +00:00
commit 22053feb47
1 changed files with 3 additions and 1 deletions

View File

@ -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;