Commit 79ca991b authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Add initialization of c1 to sylvester3.m

Prevents crashes in older Matlab versions for pathological cases (e.g. if p=0)
parent 27622a29
......@@ -52,6 +52,7 @@ else
i = 1;
c = zeros(n,1,p);
c1 = zeros(n,1,p);
while i < m
if t(i+1,i) == 0
if i == 1
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