Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Pfeifer
dynare
Commits
76a2aaff
Commit
76a2aaff
authored
12 years ago
by
Marco Ratto
Browse files
Options
Downloads
Patches
Plain Diff
rename local variables to minimize the risk of overlapping with names stored in data file
(cherry picked from commit
3aa94198
)
parent
c8ff6416
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/gsa/dat_fil_.m
+7
-7
7 additions, 7 deletions
matlab/gsa/dat_fil_.m
with
7 additions
and
7 deletions
matlab/gsa/dat_fil_.m
+
7
−
7
View file @
76a2aaff
function
c
=
dat_fil_
(
dat
a
_fil
e
);
function
list_of_exported_variables_
=
dat_fil_
(
dat_fil
_to_load_
);
% Written by Marco Ratto
% Joint Research Centre, The European Commission,
% (http://eemc.jrc.ec.europa.eu/),
...
...
@@ -25,14 +25,14 @@ function c = dat_fil_(data_file);
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
try
eval
(
dat
a
_fil
e
);
eval
(
dat_fil
_to_load_
);
catch
load
(
dat
a
_fil
e
);
load
(
dat_fil
_to_load_
);
end
clear
dat
a
_fil
e
;
clear
dat_fil
_to_load_
;
a
=
who
;
list_of_local_variables_
=
who
;
for
j
=
1
:
length
(
a
)
eval
([
'
c.'
,
a
{
j
},
'='
,
a
{
j
},
';'
]);
for
j
=
1
:
length
(
list_of_local_variables_
),
eval
([
'
list_of_exported_variables_.'
,
list_of_local_variables_
{
j
},
'='
,
list_of_local_variables_
{
j
},
';'
]);
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment