From 8b3e6e8c4dc1f60640b4de48689c7d61c931372f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Mon, 12 Nov 2012 15:36:08 +0100 Subject: [PATCH] Removed useless variable + Cosmetic change + Updated copyright --- matlab/@dynDate/max.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/matlab/@dynDate/max.m b/matlab/@dynDate/max.m index 74bcfb1b0..a25d3f766 100644 --- a/matlab/@dynDate/max.m +++ b/matlab/@dynDate/max.m @@ -48,8 +48,6 @@ function c = max(a,b) % Original author: stephane DOT adjemian AT univ DASH lemans DOT fr -verbose = 0; - if nargin~=2 error('dynDate::min: I need exactly two input arguments!') end @@ -58,7 +56,7 @@ if ~( isa(a,'dynDate') && isa(b,'dynDate')) error(['dynDate::min: Input arguments ' inputname(1) 'and ' inputname(2) ' have to be a dynDate objects!']) end -if verbose && a.freq~=b.freq +if ~isequal(a.freq,b.freq) error(['dynDate::min: Input arguments ' inputname(1) 'and ' inputname(2) ' have no common frequencies!']) end