help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating container with elements


From: trixfix
Subject: Re: Creating container with elements
Date: Sat, 7 Apr 2012 14:57:25 -0700 (PDT)

clc
clear all
close all
a=randperm(1000);
temp=0;
for i=0:100
for k=950:1000
if (a(k)>=950)
temp=temp+1;
end
end
end
temp/1000

that is how i did it was just checking for other solutions if its possible
to do othwerwise, needed function for generating probability of repeate :)



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Creating-container-with-elements-tp4538114p4540131.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]