From c666b79001be0c83f71985b0241cf293a67c24ee Mon Sep 17 00:00:00 2001 From: ratto Date: Wed, 27 Jan 2010 14:03:28 +0000 Subject: [PATCH] trap for NaN's in mm and MM git-svn-id: https://www.dynare.org/svn/dynare/trunk@3390 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/myboxplot.m | 1 + 1 file changed, 1 insertion(+) diff --git a/matlab/myboxplot.m b/matlab/myboxplot.m index b97b3f9d5..fcb4e04d2 100644 --- a/matlab/myboxplot.m +++ b/matlab/myboxplot.m @@ -149,6 +149,7 @@ cap_y = whisker_y([1,1],:); mm=min(min(data)); MM=max(max(data)); +if isnan(mm), mm=0; MM=0; end, if vertical plot (quartile_x, quartile_y, 'b', ...