Commit 339d8822 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

qz() has changed between Octave 3.2 and 3.4

parent 9bcb1883
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment