comparison scripts/strings/index.m @ 3759:110bc441a954

[project @ 2000-12-16 01:25:12 by jwe]
author jwe
date Sat, 16 Dec 2000 01:25:13 +0000
parents f8dde1807dee
children 8389e78e67d4
comparison
equal deleted inserted replaced
3758:a816be1d1626 3759:110bc441a954
46 if (isstr (s) && isstr (t)) 46 if (isstr (s) && isstr (t))
47 47
48 [nr_s, l_s] = size (s); 48 [nr_s, l_s] = size (s);
49 [nr_t, l_t] = size (t); 49 [nr_t, l_t] = size (t);
50 50
51 if (nr_s == 0 || nr_t == 0)
52 return;
53 endif
54
51 if (nr_s != 1 || nr_t != 1) 55 if (nr_s != 1 || nr_t != 1)
52 error ("index: arguments cannot be string arrays"); 56 error ("index: arguments cannot be string arrays");
53 endif 57 endif
54 58
55 if (l_t <= l_s) 59 if (l_t <= l_s)