Add initialization of c1 to sylvester3.m

Prevents crashes in older Matlab versions for pathological cases (e.g. if p=0)
time-shift
Johannes Pfeifer 2015-06-06 18:45:05 +02:00
parent 27622a29da
commit 79ca991b02
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ else
end
i = 1;
c = zeros(n,1,p);
c1 = zeros(n,1,p);
while i < m
if t(i+1,i) == 0
if i == 1