Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.2K Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:
GROUPS:

In Manipulate function, can the second argument be written as a Table?

Posted 11 years ago

Hi, good morning everybody. The number of variables to manipulate is a variable itself, I need to generate the second argument of Manipulate with a Table. How can it be done? Something like:

 Manipulate[X,Table[{X[[i]],Xmin[[i]],Xmax[[i]]},{i,1,n}]]

where X is a vector with n variables and Xmin and Xmax are vectors with minimum and maximum ranges.

POSTED BY: Fabio S.
3 Replies

Sequence very often has to be used with Apply. Both of these functions are pretty strange and probably best avoided.

If you program the Wolfram Language like it's a functional programming language, you will never use these two functions and your code becomes much easier to read and test.

POSTED BY: Sean Clarke
Posted 11 years ago

Thank you Sean, it is exactly the answer I was looking for. Actually I didn't know about the apply '@@' function, I was unsuccessful because I used Sequence followed by [ ]. Where the apply function is coming to be helpful, beside this case? The power of this language is really impressive.

POSTED BY: Fabio S.
POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard