Community Profile

# Tom Toner

9 total contributions since 2010

Contributions in
View by

Responded

Re: Elements between 2 index vectors
Hi Siyi, Thanks a lot for the imporved code. You've doubled the calculation speed. Tom

7 years ago | 1987 views

Responded

Re: Elements between 2 index vectors
Hi Jos and ade77, Thank you very much for the simple and effective methods. Basically I was trying to obtain the positions of ...

7 years ago | 1987 views

Posted

Elements between 2 index vectors
Hi I have a vector and two index vectors I am trying to find the elements between i1(k) and i2(k), k=1:4. The results shoul...

7 years ago | 1987 views

Responded

Re: How to find 1s between 0s at the odd positions and 0s at the even positions without loop
The methods above seem to have some errors in the results. I wrote a code based on us' method: The result shows: For the ve...

7 years ago | 1658 views

Posted

Replace strings without loop
Here is my solution, Results: str0 = 0010210020010000200000012102 str = 0013213320013333200000012132 However, I was wondering...

7 years ago | 1143 views

Posted

Replace strings without loop
Hi I have a string: str0='0010210020010000200000012102', and try to replace all 0s between 1 and 2 with 3, i.e., So str0 shoul...

7 years ago | 1143 views

Responded

Re: How to find 1s between 0s at the odd positions and 0s at the even positions without loop
Hi US, It is interesting to see your code. I had also thought of using regexp but couldn't figure it out. There is a little pr...

7 years ago | 1658 views

Responded

Re: How to find 1s between 0s at the odd positions and 0s at the even positions without loop
Thanks a lot, Bruno! It's a great function! Tom

7 years ago | 1658 views

Posted

How to find 1s between 0s at the odd positions and 0s at the even positions without loop
Hi, I have a 1x10,000 array of random 0s and 1s. I was trying to find the 1s between 0s at the odd positions and 0s at the even...

7 years ago | 1658 views