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
Dóra Kocsis
dynare
Commits
0d972525
Commit
0d972525
authored
Nov 13, 2013
by
Stéphane Adjemian
Browse files
Fixed bug in @dseries/insert method when more than one variable has to be inserted.
parent
b38082c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/@dseries/insert.m
View file @
0d972525
...
...
@@ -60,6 +60,13 @@ end
n
=
length
(
id
);
if
n
>
1
[
id
,
jd
]
=
sort
(
id
);
us
.
data
=
us
.
data
(
:
,
jd
);
us
.
name
=
us
.
name
(
jd
);
us
.
tex
=
us
.
tex
(
jd
);
end
for
i
=
1
:
n
ts
.
data
=
insert_column_vector_in_a_matrix
(
ts
.
data
,
us
.
data
(
:
,
i
),
id
(
i
));
ts
.
name
=
insert_object_in_a_one_dimensional_cell_array
(
ts
.
name
,
us
.
name
{
i
},
id
(
i
));
...
...
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