Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
matlab-gui
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
matlab-gui
Commits
286ff64d
Verified
Commit
286ff64d
authored
5 years ago
by
Houtan Bastani
Browse files
Options
Downloads
Patches
Plain Diff
handle initial value from smoother2histval for simulation
parent
809a832c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/gui_determ_simulation.m
+7
-1
7 additions, 1 deletion
src/gui_determ_simulation.m
src/gui_stoch_simulation.m
+8
-1
8 additions, 1 deletion
src/gui_stoch_simulation.m
with
15 additions
and
2 deletions
src/gui_determ_simulation.m
+
7
−
1
View file @
286ff64d
...
@@ -563,6 +563,12 @@ elseif strcmp(evt.NewValue.String, 'smoother')
...
@@ -563,6 +563,12 @@ elseif strcmp(evt.NewValue.String, 'smoother')
evt
.
OldValue
.
Value
=
1
;
evt
.
OldValue
.
Value
=
1
;
return
return
end
end
handles
.
endoTable
.
Data
(:,
3
)
=
num2cell
(
oo_
.
SmoothedVariables
);
fname
=
inputdlg
(
'output file from smoother2histval'
);
if
isempty
(
fname
)
evt
.
OldValue
.
Value
=
1
;
else
histvalf
(
fname
{:})
handles
.
endoTable
.
Data
(:,
3
)
=
num2cell
(
M_
.
endo_histval
);
end
end
end
end
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/gui_stoch_simulation.m
+
8
−
1
View file @
286ff64d
...
@@ -128,6 +128,7 @@ uicontrol(handles.buttongroup, ...
...
@@ -128,6 +128,7 @@ uicontrol(handles.buttongroup, ...
'Style'
,
'radiobutton'
,
...
'Style'
,
'radiobutton'
,
...
'String'
,
'steady state'
,
...
'String'
,
'steady state'
,
...
'Units'
,
'normalized'
,
...
'Units'
,
'normalized'
,
...
'Value'
,
1
,
...
'Position'
,
[
0.3
0
1
1
]);
'Position'
,
[
0.3
0
1
1
]);
uicontrol
(
handles
.
buttongroup
,
...
uicontrol
(
handles
.
buttongroup
,
...
...
@@ -311,6 +312,12 @@ elseif strcmp(evt.NewValue.String, 'smoother')
...
@@ -311,6 +312,12 @@ elseif strcmp(evt.NewValue.String, 'smoother')
evt
.
OldValue
.
Value
=
1
;
evt
.
OldValue
.
Value
=
1
;
return
return
end
end
handles
.
endoTable
.
Data
(:,
3
)
=
num2cell
(
oo_
.
SmoothedVariables
);
fname
=
inputdlg
(
'output file from smoother2histval'
);
if
isempty
(
fname
)
evt
.
OldValue
.
Value
=
1
;
else
histvalf
(
fname
{:})
handles
.
endoTable
.
Data
(:,
3
)
=
num2cell
(
M_
.
endo_histval
([
model_settings
.
variables
{:,
4
}]));
end
end
end
end
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