Mercurial > hg > octave-nkf
comparison scripts/strings/findstr.m @ 5400:c7e3cf2fce3e
[project @ 2005-07-05 15:01:32 by jwe]
author | jwe |
---|---|
date | Tue, 05 Jul 2005 15:01:32 +0000 |
parents | b3ba123faec8 |
children | 2a16423e4aa0 |
comparison
equal
deleted
inserted
replaced
5399:db34dff19947 | 5400:c7e3cf2fce3e |
---|---|
115 endif | 115 endif |
116 if (! isempty (v)) | 116 if (! isempty (v)) |
117 v = v(find (keep)); | 117 v = v(find (keep)); |
118 endif | 118 endif |
119 endif | 119 endif |
120 | 120 |
121 if (isempty (v)) | |
122 v = []; | |
123 endif | |
124 | |
121 ## Always return a column vector, because that's what the old one did | 125 ## Always return a column vector, because that's what the old one did |
122 if (rows (v) > 1) | 126 if (rows (v) > 1) |
123 v = v.'; | 127 v = v.'; |
124 endif | 128 endif |
125 | 129 |