October 15th, 2007, 6:25 am
tryrd = rand(1000,1000);last_col = rd(:,end); % last columninterval = linspace(0, 1, 100); % get binshist(last_col, interval);QuoteOriginally posted by: arunseshadriHi, I am new to Matlab and I am trying to generate a Random Numbers using Box Muller or something similar. I am able to generate the list of 1000, 1000 random numbers using rand (1000,100). I need to take the last element of each of these coloumns and then generate a list of these 1000 entries. Use the frequency of these 1000 numbers and then plot those frequency on a Histogram I was indeed successful in generating the random numbers but I am having difficulty with creating a list from these random numbers. Could someone please help. It would be nice if I can get some code that I can experiment with. I have looked at a few tutorials but I am still not there yet. Cheers
Last edited by
james88 on October 14th, 2007, 10:00 pm, edited 1 time in total.