to velocize my code

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

to velocize my code

gigiolone123
This post was updated on .
hi,

ff=[1   1   4   5   5   6   7   8   8   8   8]

I want to count the  identical  numbers :

ans=[ 2 1 2 1 1 4]  
2==> 1  1
1==>4
2==>5   5
1==>6
1==>7
4==>8 8 8 8



it's possible to velocize it ?



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: to velocize my code

nrjank
On Mon, Jul 29, 2019, 5:28 PM gigiolone123 <[hidden email]> wrote:
hi,

ff=[1   1   4   5   5   6   7   8   8   8   8]

I want to count the same numbers :

ans=[ 2 1 2 1 1 4]


it's possible to velocize it ?