declaring inputs in a function ?

2 ビュー (過去 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 Center および File ExchangeCall C++ from MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by