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.math.mathematica

Topic: [mg6124] Re: [mg6072] creating variables
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Jens Potschadtke

Posts: 7
Registered: 12/7/04
[mg6124] Re: [mg6072] creating variables
Posted: Feb 22, 1997 11:52 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Alex Tabarrok wrote:
> ...
> Table[a[[i]], {i, 1, 2}]
> ...
> Although the final answer is what I want.
>
> {a[[1]], a[[2]]}
>
> I could of course turn the error off but perhaps there is another
> more elegant (?) way of handling this issue. Thanks for your input.
>
> Alex


Hi Alex!

Before you can access elements of a, you need to
tell MMA that a _is_ a List and nothing else.
Simply use "a={};" before your Table statement.

Bye





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.