From 7e70af88a99e90f0526f8553eae1077bafd7d536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Scylla=29?= Date: Tue, 5 Nov 2013 16:28:23 +0100 Subject: [PATCH] Removed useless condition (first argument has to be a dates object). --- matlab/@dates/minus.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/@dates/minus.m b/matlab/@dates/minus.m index 252490d88..4c90ff566 100644 --- a/matlab/@dates/minus.m +++ b/matlab/@dates/minus.m @@ -20,7 +20,7 @@ function C = minus(A,B) % --*-- Unitary tests --*-- % You should have received a copy of the GNU General Public License % along with Dynare. If not, see . -if isa(A,'dates') && isa(B,'dates') +if isa(B,'dates') if ~isequal(A.freq,B.freq) error(['dates::minus: Input arguments ''' inputname(1) ''' and ''' inputname(2) ''' must have common frequencies!']) end