big fix with strcmp

time-shift
Marco Ratto 2012-06-07 21:54:55 +02:00
parent edca74659e
commit 907544bc1a
1 changed files with 3 additions and 3 deletions

View File

@ -30,14 +30,14 @@ function dyn_saveas(h,fname,DynareOptions)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if find(strcmp('eps',DynareOptions.graph_format))
if (strcmp('eps',DynareOptions.graph_format))
eval(['print -depsc2 ' fname '.eps']);
end
if find(strcmp('pdf',DynareOptions.graph_format))
if (strcmp('pdf',DynareOptions.graph_format))
eval(['print -dpdf ' fname]);
end
if ~exist('OCTAVE_VERSION') ...
&& find(strcmp('fig',DynareOptions.graph_format))
&& (strcmp('fig',DynareOptions.graph_format))
if DynareOptions.nodisplay
set(h, 'Visible','on');
end