Re: For loop and dynamic Table
- To: mathgroup at smc.vnet.net
- Subject: [mg67712] Re: For loop and dynamic Table
- From: dh <dh at metrohm.ch>
- Date: Wed, 5 Jul 2006 04:18:20 -0400 (EDT)
- References: <e8d1fv$7lg$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
First, I think there is a typo, cn++.. should read cn++,..
2: What are the braces {..} for?
3) what is M and Y
I do not get any "Null". Null is returned by a statement that ends with
";". I guess there is something wrong with M or Y.
Daniel
bdou.oumaima at hotmail.com wrote:
> 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]]
>
>