Article View: aus.stats.s
Article #222Splus help
From: Nishant
Date: Wed, 14 Sep 2005 01:45
Date: Wed, 14 Sep 2005 01:45
34 lines
1868 bytes
1868 bytes
hi there,
I am a new user of Splus.
Can Any body tell me how whould I start this program which is is run in
matlab using Splus
M = input('Enter the number of rows/columns for the square matrix =
');
r = input('Enter the number for the power r greater than zero in the
probability formula= ');
PP=input('Enter the number for the no of people N= ');
CC=input('Enter the number of samples n=');
% rand('state',0);
% rand('state',sum(1*clock));
abc=1;
for dd=1 : PP % main for loop or for number of persons
for i=1 : M
for k=1 : M
Y = rand(abc); % for generating random number
disp(Y);
end
end % these 2
for loops produces a Matrix of random numbers
end
Looking forward to your guidance
Thanks
Nishant
Technical Details
Message-ID:
<1126662320.071557.100340@g44g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: fa931,1e4e53c7136f3eb4,start X-Google-Attributes: gidfa931,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mail From: "Nishant" <nishantxl@rediffmail.com> Newsgroups: aus.stats.s Subject: Splus help Date: 13 Sep 2005 18:45:20 -0700 Organization: http://groups.google.com Lines: 35 Message-ID: <1126662320.071557.100340@g44g2000cwa.googlegroups.com> NNTP-Posting-Host: 131.151.33.99 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1126662325 25180 127.0.0.1 (14 Sep 2005 01:45:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 14 Sep 2005 01:45:25 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g44g2000cwa.googlegroups.com; posting-host=131.151.33.99; posting-account=DeVkcw0AAABSEsR0OarWexhV0GMah4PW