declaring inputs in a function ?

조회 수: 1 (최근 30일)
Rakesh Praveen
Rakesh Praveen 2011년 11월 17일
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.

채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 11월 17일
help varargin, there is an example in the help document.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by