MATLAB Answers

declaring inputs in a function ?

2 views (last 30 days)
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
thank you.


Sign in to comment.

Accepted Answer

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


Sign in to comment.

More Answers (0)


Community Treasure Hunt

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

Start Hunting!