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
53d39178
Commit
53d39178
authored
Dec 01, 2010
by
Michel Juillard
Browse files
corrected bug in get_name_of_the_last_mh_file.m
parent
d4a908dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/get_name_of_the_last_mh_file.m
View file @
53d39178
...
...
@@ -41,9 +41,11 @@ predicted_mhname = [ MhDirectoryName '/' M_.fname '_mh' int2str(mh_number) '_bl
AllMhFiles
=
dir
([
MhDirectoryName
'/'
M_
.
fname
'_mh*_blck*'
]);
idx
=
1
;
latest_date
=
0
;
for
i
=
2
:
size
(
AllMhFiles
)
if
AllMhFiles
(
i
)
.
datenum
>
AllMhFiles
(
i
-
1
)
.
date
num
if
AllMhFiles
(
i
)
.
datenum
>
latest_
date
idx
=
i
;
latest_date
=
AllMhFiles
(
i
)
.
datenum
;
end
end
mhname
=
[
MhDirectoryName
'/'
AllMhFiles
(
idx
)
.
name
];
...
...
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