Mercurial > octave-nkf
comparison src/DLD-FUNCTIONS/conv2.cc @ 5822:4fdc2515ebad
[project @ 2006-05-18 19:31:36 by jwe]
author | jwe |
---|---|
date | Thu, 18 May 2006 19:31:37 +0000 |
parents | e54c11df0524 |
children | 080c08b192d8 |
comparison
equal
deleted
inserted
replaced
5821:11e4ae44984f | 5822:4fdc2515ebad |
---|---|
267 print_usage ("conv2"); | 267 print_usage ("conv2"); |
268 return retval; | 268 return retval; |
269 } | 269 } |
270 else if (nargin == 3) | 270 else if (nargin == 3) |
271 { | 271 { |
272 if args(2).is_string ()) | 272 if (args(2).is_string ()) |
273 shape = args(2).string_value (); | 273 shape = args(2).string_value (); |
274 else | 274 else |
275 separable = true; | 275 separable = true; |
276 } | 276 } |
277 else if (nargin >= 4) | 277 else if (nargin >= 4) |
286 ishape = SHAPE_SAME; | 286 ishape = SHAPE_SAME; |
287 else if (shape == "valid") | 287 else if (shape == "valid") |
288 ishape = SHAPE_VALID; | 288 ishape = SHAPE_VALID; |
289 else | 289 else |
290 { | 290 { |
291 error("Shape type not valid"); | 291 error ("conv2: shape type not valid"); |
292 print_usage ("conv2"); | 292 print_usage ("conv2"); |
293 return retval; | 293 return retval; |
294 } | 294 } |
295 | 295 |
296 if (separable) | 296 if (separable) |