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
54d95772
Commit
54d95772
authored
2 years ago
by
Johannes Pfeifer
Browse files
Options
Downloads
Patches
Plain Diff
dynare++/dynare_simul/dynare_simul.m: fix interface following
7e770f69
parent
a9868927
No related branches found
No related tags found
1 merge request
!2097
dynare++/dynare_simul/dynare_simul.m: fix interface following 7e770f69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dynare++/dynare_simul/dynare_simul.m
+7
-6
7 additions, 6 deletions
dynare++/dynare_simul/dynare_simul.m
with
7 additions
and
6 deletions
dynare++/dynare_simul/dynare_simul.m
+
7
−
6
View file @
54d95772
...
@@ -42,6 +42,11 @@
...
@@ -42,6 +42,11 @@
% All examples suppose that the prefix is 'dyn' and that your_model.mat
% All examples suppose that the prefix is 'dyn' and that your_model.mat
% has been loaded into Matlab.
% has been loaded into Matlab.
%
%
% You could e.g. use
% load('example1.mat');
% shocks=randn(size(dyn_shocks,1),1000)'*chol(dyn_vcov_exo);
% dynare_simul('example1',shocks')
%
% 1. response to permanent negative shock to the third exo var EPS3 for
% 1. response to permanent negative shock to the third exo var EPS3 for
% 100 periods
% 100 periods
%
%
...
@@ -168,9 +173,5 @@ end
...
@@ -168,9 +173,5 @@ end
seed
=
ceil
(
10000
*
rand
(
1
,
1
));
seed
=
ceil
(
10000
*
rand
(
1
,
1
));
% call dynare_simul_
% call dynare_simul_
[
err
,
r
]
=
dynare_simul_
(
order
-
1
,
nstat
,
npred
,
nboth
,
nforw
,
...
r
=
dynare_simul_
(
order
-
1
,
nstat
,
npred
,
nboth
,
nforw
,
...
nexog
,
ystart
,
shocks
,
vcov_exo
,
seed
,
ss
,
dr
);
nexog
,
ystart
,
shocks
,
vcov_exo
,
seed
,
ss
,
dr
);
\ No newline at end of file
if
err
error
(
'Simulation failed'
)
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