craeating vectors

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

craeating vectors

aayushi gupta
Hi

How can I create 100 vectors with 1000elements each such that my first vector has 1st and 501th element as 1 and rest all elements are 0, second vector has 2nd and 502th element as 1 and rest all are 0 and so on.