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
6c7501d9
Commit
6c7501d9
authored
Oct 30, 2012
by
Houtan Bastani
Browse files
move console setting to global_initialization.m
parent
fc7ea133
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/dynare.m
View file @
6c7501d9
...
...
@@ -101,20 +101,6 @@ for i=2:nargin
command
=
[
command
' '
varargin
{
i
-
1
}];
end
if
isempty
(
strfind
(
command
,
'console'
))
if
exist
(
'OCTAVE_VERSION'
)
if
sum
(
get
(
0
,
'screensize'
))
==
4
command
=
[
command
' console'
];
end
else
if
isunix
&&
(
~
usejava
(
'jvm'
)
||
...
((
matlab_ver_less_than
(
'7.5'
)
&&
sum
(
get
(
0
,
'ScreenSize'
))
==
4
)
||
...
(
~
matlab_ver_less_than
(
'7.5'
)
&&
~
feature
(
'ShowFigureWindows'
))))
command
=
[
command
' console'
];
end
end
end
[
status
,
result
]
=
system
(
command
);
disp
(
result
)
if
status
...
...
matlab/global_initialization.m
View file @
6c7501d9
...
...
@@ -33,9 +33,19 @@ global oo_ M_ options_ estim_params_ bayestopt_ estimation_info ex0_ ys0_ ex_de
estim_params_
=
[];
bayestopt_
=
[];
options_
.
datafile
=
''
;
options_
.
console_mode
=
0
;
options_
.
verbosity
=
1
;
options_
.
console_mode
=
0
;
if
exist
(
'OCTAVE_VERSION'
)
if
sum
(
get
(
0
,
'screensize'
))
==
4
options_
.
console_mode
=
1
;
end
else
if
isunix
&&
(
~
usejava
(
'jvm'
)
||
...
((
matlab_ver_less_than
(
'7.5'
)
&&
sum
(
get
(
0
,
'ScreenSize'
))
==
4
)
||
...
(
~
matlab_ver_less_than
(
'7.5'
)
&&
~
feature
(
'ShowFigureWindows'
))))
options_
.
console_mode
=
1
;
end
end
options_
.
terminal_condition
=
0
;
options_
.
rplottype
=
0
;
...
...
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