MATLAB Answers

How to write a fucntion which we don't know how many "in" values will be needed?

1 view (last 30 days)
IBM watson
IBM watson on 7 Nov 2018
Commented: madhan ravi on 7 Nov 2018
I want to know how to write first line of a function which we cant tell how many variables will be "inputed".
example :
for equation 1 :
function[] = in(c1,c2,c3)
for equation 2:
function[] = in(c1,c2,c3,c4)

  0 Comments

Sign in to comment.

Accepted Answer

madhan ravi
madhan ravi on 7 Nov 2018

  4 Comments

Show 1 older comment

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by