]> granicus.if.org Git - liblinear/blobdiff - matlab/train.c
Change
[liblinear] / matlab / train.c
index 2a97feb67dce8d83e191c9d52832cb2537ef4e9a..8a6b9198987ffaac876bde2f4ffc094b55742203 100644 (file)
@@ -283,7 +283,7 @@ void mexFunction( int nlhs, mxArray *plhs[],
        srand(1);
 
        // Transform the input Matrix to libsvm format
-       if(nrhs > 0 && nrhs < 5)
+       if(nrhs > 1 && nrhs < 5)
        {
                int err=0;