From a64c34c3ece8bbee95a28fd477c575a5832f5718 Mon Sep 17 00:00:00 2001 From: hbristow Date: Fri, 30 Aug 2013 16:48:41 +1000 Subject: [PATCH] Updated cv help to include reference to named arguments --- modules/matlab/generator/templates/template_map_base.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/matlab/generator/templates/template_map_base.m b/modules/matlab/generator/templates/template_map_base.m index 7c2cc2bc8..a7d61b48e 100644 --- a/modules/matlab/generator/templates/template_map_base.m +++ b/modules/matlab/generator/templates/template_map_base.m @@ -27,6 +27,14 @@ % camera = cv.VideoCapture(); % camera.open('/path/to/file'); % +% You can specify optional arguments by name, similar to how python +% and many builtin Matlab functions work. For example, the cv.dft +% method used above has an optional 'nonzeroRows' argument. If +% you want to specify that, but keep the default 'flags' behaviour, +% simply call the method as: +% +% Xf = cv.dft(X, 'nonzeroRows', 7); +% % HELP % Each method has its own help file containing information about the % arguments, return values, and what operation the method performs.