How do create a unbalanced vector based on a balanced vecto



hi,

my problem is this: i have a sequence of 1 and -1, I want to expand
this copying each position several times, but the lengths wil be
diferent like this: 1 -> 9 and -1->7, an example:

original vector: [1 -1 1]
modified: [1 1 1 1 1 1 1 1 1 -1 -1 -1 -1 -1 -1 -1 1 1 1 1 1 1 1 1 1]

can you help me??

thanks

Marcos

.



Relevant Pages

  • Re: What does xii.tex do?
    ... fil -> here that means sequence of messages ... What we have to do is to expand all the macros. ... sequence of D tokens, a space, a sequence ofE tokens, a comma, and a ... execute A B C E \D. ...
    (comp.text.tex)
  • Re: An uncountable countable set
    ... Let me expand on this. ... > a meaning as decimal representation of 1/9. ... there must be some n such that 10^equals 0. ... Note that when we expand the An's with an infinite sequence ...
    (sci.math)
  • Re: [Info-vax] Search on indexed file with data and key compression
    ... If I use seach on an indexed (prolog 3) file with data and key ... compression, does the ... search do the right thing and expand the data before comparison? ... sequentially in sequence by the primary key. ...
    (comp.os.vms)
  • Re: Raatikainens critique of Chaitin
    ... Here's how you can "construct" a sequence with an undefined limiting ... Then start copying the bits of r2 into r until Qgets above c2. ... r1 again (except for an initial segment). ... So the ratio Qwill fluctuate ...
    (comp.theory)
  • Re: Raatikainens critique of Chaitin
    ... Here's how you can "construct" a sequence with an undefined limiting ... Then start copying the bits of r2 into r until Qgets above c2. ... r1 again (except for an initial segment). ... So the ratio Qwill fluctuate ...
    (sci.math)