Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
function x = corput (n)
|
||||
b = dec2bin(1:n)-'0'; % generate sequence of binary numbers from 1 to n
|
||||
l = size(b,2); % get number of binary digits
|
||||
w = (1:l)-l-1; % 2.^w are the weights
|
||||
x = b * ( 2.^w'); % matrix times vector multiplication for
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue