MathGroup Archive 2006

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

Search the Archive

RE:For loop and dynamic Table

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67682] RE:For loop and dynamic Table
  • From: abdou.oumaima at hotmail.com
  • Date: Tue, 4 Jul 2006 01:58:26 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

I find the solution:
Psi={}

CN=3; c=0.8; 

For[cn = 0, cn < CN, cn++{ psiplus = Table[If[i == 1, 1, 0], {i, 1, cn}]; 

     Print["Psiplus = ", psiplus ];
psimoins = LinearSolve[M, Y]; 

AppendTo[Psi,psimoins];
}]


But when I Print the "Psi" list  out of the loop For I 've this result:

{{0.34276404146754548317 Null}, {0.47801829924656490217 Null, 0.20418191613558461970 Null}}

NULL are in all the item of the "Psi" list . How to resolve this problem Please.
Any help please.
Thank you



Link to the forum page for this post:
http://www.mathematica-users.org/webMathematica/wiki/wiki.jsp?pageName=Special:Forum_ViewTopic&pid=11636#p11636
Posted through http://www.mathematica-users.org [[postId=11636]]



  • Prev by Date: Re: double line spacing in notebook
  • Next by Date: Re: StringReplace and WordBoundary
  • Previous by thread: Re: how to convert old files ??
  • Next by thread: RE:For loop and dynamic Table