How can I convert a list such as:
a = {1, 2, 0.1}
into sequence so that I can pass them into a function, e.g. I want to be able to do something like this
Range[a]
so that the output will be:
1, 1.1, 1.2, ... , 2.0
|
How can I convert a list such as:
into sequence so that I can pass them into a function, e.g. I want to be able to do something like this
so that the output will be:
|
||||
|
|
You can use the Range function in this way:
to get
If the problem is how to pass the parameter 1- Using
The 2- Using
It's useful when you have another variables to pass. That's not your case, but I just wrote to be more didactical. |
||||
|
Taking the last line of the question even more literally than Mr.Wizard
|
|||||||||
|
|
... you can also use
or,
or, set
|
|||
|
|
|
Taking the last line of your question literally:
Also, to illustrate an alternative data format:
|
||||
|
|
Also
|
|||
|
|