MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

assignment problerm

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94096] assignment problerm
  • From: Ignacio Plazeta <Ignacio.Plazeta at speednet.es>
  • Date: Fri, 5 Dec 2008 05:27:41 -0500 (EST)

Dear Friends

The following code won't work and returns the error
Set::setps: "{{1,<<9>>,<<22>>},<<9>>,<<111172>>} in the part \
assignment is not a symbol."


But

myData[[myList[[k]], 16]] = myValue;

outside the function does what is expected !


I'm incapable to understend the reason and fix the problem;
can someone give me an hint ?

Thanks a lot.
Warmest regards.

Ignacio


setBranca[myData_, myList_, myValue_] := Module[{tmp},

   Table[

     If[

       myData[[myList[[k]], 16]] == "",

       myData[[myList[[k]], 16]] = myValue;

       ];

     ,{k, 1, Length[myList]}

     ];

   ]

setBranca [myArchive, {1, 2, 3}, "myNewValue"]


  • Prev by Date: Re: Plotting Vector Fields in Mathematica 7
  • Next by Date: Re: functions: compiled vs. uncompiled version
  • Previous by thread: Re: functions: compiled vs. uncompiled version
  • Next by thread: Re: assignment problerm