Borrar filtros
Borrar filtros

declaring inputs in a function ?

1 visualización (últimos 30 días)
Rakesh Praveen
Rakesh Praveen el 17 de Nov. de 2011
hi, does the matlab function accept varying number of input arguments in the function declaration? if, so how to declare the function ?
for example:
function[output]= example1(in1,in2,in3,in4)
this same function example1 should work for
function[output]=example1(in1,in2)
thank you.

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 17 de Nov. de 2011
help varargin, there is an example in the help document.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by