diff --git a/modules/matlab/generator/templates/template_map_base.m b/modules/matlab/generator/templates/template_map_base.m index 7c2cc2bc85..a7d61b48e9 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.