The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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: 86
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.



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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.