Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: dynamic input varargin
Replies: 3   Last Post: Mar 9, 2013 8:10 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
kees de kapper

Posts: 71
Registered: 12/7/04
dynamic input varargin
Posted: Mar 7, 2013 9:40 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all,

I've got a question. I don't know if it is possible.

A normal function call is certainfunc(variable1, variable2, variable3)
But could I perform a construction as below?

> A = {variable1, variable2, variable3}
> certainfunc(A)
>
> function certainfunc(varargin)
> .
> some code over here
> .


How could I do something like this without an error message of "Not enough input arguments." or something else.

thanx,

Kees



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.