Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
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
Dynare
dynare
Commits
0aa103b1
Verified
Commit
0aa103b1
authored
3 years ago
by
Johannes Pfeifer
Committed by
Sébastien Villemot
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
model_info.m: improve output display
(cherry picked from commit
725fa79b
)
parent
5b6b0ab0
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/model_info.m
+5
-5
5 additions, 5 deletions
matlab/model_info.m
with
5 additions
and
5 deletions
matlab/model_info.m
+
5
−
5
View file @
0aa103b1
...
...
@@ -31,11 +31,11 @@ else
incidence
=
0
;
end
if
static_
fprintf
(
' Information
s
about %s (static model)\n'
,
M_
.
fname
);
fprintf
(
' Information about %s (static model)\n'
,
M_
.
fname
);
block_structre_str
=
'block_structure_stat'
;
nb_leadlag
=
1
;
else
fprintf
(
' Information
s
about %s (dynamic model)\n'
,
M_
.
fname
);
fprintf
(
' Information about %s (dynamic model)\n'
,
M_
.
fname
);
block_structre_str
=
'block_structure'
;
nb_leadlag
=
3
;
end
...
...
@@ -69,7 +69,7 @@ if isfield(M_,block_structre_str)
fprintf
(
'===============================================================================================================\n'
);
fprintf
(
'\n'
);
if
static_
fprintf
(
'%-30s %s'
,
'the variable'
,
'is used in equations
C
ontemporaneously'
);
fprintf
(
'%-30s %s'
,
'the variable'
,
'is used in
the following
equations
c
ontemporaneously'
);
if
(
size
(
block_structure
.
incidence
.
sparse_IM
,
1
)
>
0
)
IM
=
sortrows
(
block_structure
.
incidence
.
sparse_IM
,
2
);
else
...
...
@@ -88,9 +88,9 @@ if isfield(M_,block_structre_str)
else
for
k
=
1
:
M_
.
maximum_endo_lag
+
M_
.
maximum_endo_lead
+
1
if
(
k
==
M_
.
maximum_endo_lag
+
1
)
fprintf
(
'%-30s %s'
,
'the variable'
,
'is used in equations Contemporaneously'
);
fprintf
(
'%-30s %s'
,
'the variable'
,
'is used in
the following
equations Contemporaneously'
);
elseif
(
k
<
M_
.
maximum_endo_lag
+
1
)
fprintf
(
'%-30s %s %d'
,
'the variable'
,
'is used in equations with lag '
,
M_
.
maximum_endo_lag
+
1
-
k
);
fprintf
(
'%-30s %s %d'
,
'the variable'
,
'is used in
the following
equations with lag '
,
M_
.
maximum_endo_lag
+
1
-
k
);
else
fprintf
(
'%-30s %s %d'
,
'the variable'
,
'is used in equations with lead '
,
k
-
(
M_
.
maximum_endo_lag
+
1
));
end
...
...
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