# HG changeset patch # User Rik # Date 1380053822 25200 # Node ID 997b700b6ad448f4ce4c2db3ea5bce3f9aa6dee4 # Parent 576cf0589c6d312b9693ae2888dfa3b9bfd2efd7 compass.m: Add %!error input validation tests. * scripts/plot/compass.m: Add %!error input validation tests. diff --git a/scripts/plot/compass.m b/scripts/plot/compass.m --- a/scripts/plot/compass.m +++ b/scripts/plot/compass.m @@ -88,7 +88,7 @@ endif ## Matlab draws compass plots with the arrow head as one continous line, - ## and each arrow separately. This is completely different than quiver + ## and each arrow separately. This is completely different from quiver ## and quite ugly. n = length (u); xend = u; @@ -128,3 +128,10 @@ %! a = toeplitz ([1;randn_9x1_data], [1,randn_1x9_data]); %! compass (eig (a)); +%% Test input validation +%!error compass () +%!error compass (1,2,3,4) +%!error compass (1, "-r", 2) +%!error compass (1, "abc") +%!error compass (1, {1}) +