🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Nishant Wed, 14 Sep 2005 01:45
Splus help
#222
Author: Nishant
Date: Wed, 14 Sep 2005 01:45
34 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads