qz() has changed between Octave 3.2 and 3.4

time-shift
Sébastien Villemot 2012-04-04 22:13:34 +02:00
parent 9bcb1883bd
commit 339d88220d
1 changed files with 5 additions and 1 deletions

View File

@ -38,7 +38,11 @@ end
if exist('OCTAVE_VERSION')
[aa,bb,qq,zz]=qz(full(a),full(b));
for j=1:p,
d(:,:,j)=qq*d(:,:,j)*u;
if octave_ver_less_than('3.4.0')
d(:,:,j)=qq'*d(:,:,j)*u;
else
d(:,:,j)=qq*d(:,:,j)*u;
end
end
else
[aa,bb,qq,zz]=qz(full(a),full(b),'real'); % available in Matlab version 6.0