comparison scripts/image/private/__imread__.m @ 18143:b5970988ccff

image/private/__imread__.m: simplify subfunction for argument check
author Carnë Draug <carandraug@octave.org>
date Tue, 17 Dec 2013 13:28:31 +0000
parents 10dca690f46f
children 15db54c4a572
comparison
equal deleted inserted replaced
18142:10dca690f46f 18143:b5970988ccff
151 151
152 ## Tests if the value passed to the Index or Frames is valid. This option 152 ## Tests if the value passed to the Index or Frames is valid. This option
153 ## can be defined in two places, but only in one place can it also be the 153 ## can be defined in two places, but only in one place can it also be the
154 ## string "all" 154 ## string "all"
155 function bool = is_valid_index_option (arg) 155 function bool = is_valid_index_option (arg)
156 ## is the index option 156 bool = isvector (arg) && isnumeric (arg) && isreal (arg);
157 bool = false;
158 if (isvector (arg) && isnumeric (arg) && isreal (arg))
159 bool = true;
160 endif
161 endfunction 157 endfunction
162 158