Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
MichelJuillard
dynare
Commits
79ca991b
Commit
79ca991b
authored
Jun 06, 2015
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/gensylv/sylvester3.m
View file @
79ca991b
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment