Re: Subscript assignment incompatibility??

*To*: mathgroup at smc.vnet.net*Subject*: [mg71127] Re: [mg71101] Subscript assignment incompatibility??*From*: Sseziwa Mukasa <mukasa at jeol.com>*Date*: Thu, 9 Nov 2006 03:37:28 -0500 (EST)*References*: <200611081115.GAA22454@smc.vnet.net>

On Nov 8, 2006, at 6:15 AM, kevin_jazz wrote: > I have another very simple problem: > x={{1,28},{2,28}} > Subscript[p,res] = x > > x[[1]]=x[[1]] > {1,28} > > Subscript[p,res][[1]] = Subscript[p,res][[1]] > > \!\(Set::"setps" : \ "\!\(p\_res\) in assignment of part is not a > symbol."\) > > So, I can't make an assignment with a variable that has a subscript?? > What am I missing? Use the Utilities`Notation` package to make a symbol out of Subscript [p,res]. You can only assign to symbols, parts of symbols that evaluate to lists, or functions of the form head[arg] where head is not a protected symbol. Regards, Ssezi

**References**:**Subscript assignment incompatibility??***From:*"kevin_jazz" <kevinbowman@mac.com>