RE: Protected element error
- To: mathgroup at smc.vnet.net
- Subject: [mg17278] RE: [mg17229] Protected element error
- From: "Jean-Marie THOMAS" <jmthomas at agat.net>
- Date: Fri, 30 Apr 1999 02:34:53 -0400
- Sender: owner-wri-mathgroup at wolfram.com
Try this:
m=Table[1,{3},{3}];
With[{ret=Input["new a33 value"]},m[[3,3]]=ret;TableForm at m]
Hope this helps,
****************************************
Jean-Marie THOMAS
mailto:jmthomas at agat.net
Conseil et Audit en Ingenierie de Calcul
Strasbourg, France
http://www.agat.net
****************************************
-----Original Message-----
From: Kristen Rounds [mailto:krounds at accessone.com]
To: mathgroup at smc.vnet.net
Subject: [mg17278] [mg17229] Protected element error
Early in my program I define a 4x4 matrix:
A1x:=M.b1x.Transpose[M];
Later I wish to allow the user to modify a matrix element:
If[StringMatchQ[terma,"a33",IgnoreCase->True],
"A"<>sur<>"x"[1,1]=Input["New a33 x value"]];
I am getting this error when I try to use the new A1x matrix:
SetDelayed::write: Tag StringJoin in A<>1<>x is Protected.
I tried to use Unprotect[A1x]; prior to the new input, but that
doesn't seem to make a difference.
Please explain this error, and if there is a way to avoid it. Thanks.
Kristen