Community Profile

Contact

Top 10% contributor

Hi Siyi, Thanks a lot for the imporved code. You've doubled the calculation speed. Tom

1614 views

Responded 5 years ago

Hi Jos and ade77, Thank you very much for the simple and effective methods. Basically I was trying to obtain the positions of ...

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...

Posted 5 years ago

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...

1443 views

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...

Thanks a lot, Bruno! It's a great function! Tom

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...

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

945 views

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