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
6cc3be72
Commit
6cc3be72
authored
Jun 07, 2012
by
Sébastien Villemot
Browse files
Octave can create PDF files
parent
35a2f38d
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/dyn_saveas.m
View file @
6cc3be72
...
...
@@ -33,16 +33,15 @@ function dyn_saveas(h,fname,DynareOptions)
if
find
(
strcmp
(
'eps'
,
DynareOptions
.
graph_format
))
eval
([
'print -depsc2 '
fname
'.eps'
]);
end
if
~
exist
(
'OCTAVE_VERSION'
)
if
find
(
strcmp
(
'pdf'
,
DynareOptions
.
graph_format
))
eval
([
'print -dpdf '
fname
]);
end
if
find
(
strcmp
(
'fig'
,
DynareOptions
.
graph_format
))
if
DynareOptions
.
nodisplay
set
(
h
,
'Visible'
,
'on'
);
end
saveas
(
h
,[
fname
'.fig'
]);
if
find
(
strcmp
(
'pdf'
,
DynareOptions
.
graph_format
))
eval
([
'print -dpdf '
fname
]);
end
if
~
exist
(
'OCTAVE_VERSION'
)
...
&&
find
(
strcmp
(
'fig'
,
DynareOptions
.
graph_format
))
if
DynareOptions
.
nodisplay
set
(
h
,
'Visible'
,
'on'
);
end
saveas
(
h
,[
fname
'.fig'
]);
end
if
DynareOptions
.
nodisplay
close
(
h
);
...
...
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