Statistica
3 Domande
0 Risposte
RANK
142.916
of 300.851
REPUTAZIONE
0
CONTRIBUTI
3 Domande
0 Risposte
ACCETTAZIONE DELLE RISPOSTE
100.0%
VOTI RICEVUTI
0
RANK
of 171.294
CONTRIBUTI
0 Problemi
0 Soluzioni
PUNTEGGIO
0
NUMERO DI BADGE
0
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Feeds
Domanda
I am using a function and i want to update counter on each function call and use value of that counter for some condition.But every function call counter initialize to zero and if i use counter=counter+1 it always give counter =1 so how to do this?
The variable counter value should be equal to number of times function call.
oltre 8 anni fa | 2 risposte | 0
2
risposteDomanda
Suppose a row vector x=1:8 and another vector of same size z=[1 1 0 1 1 0 1 1].I want to swap element in x according to element in z if z==1 then swap the postion of element of x else z==0 element of x should be in same position in vector.
The number of swap should be equal to number of one in vector z divide by 2 if even ones else plus one divide by 2.The value of ...
oltre 8 anni fa | 1 risposta | 0
1
rispostaDomanda
I want to do random swapping in row vector and i know the number of swap to be performed.If row vector x=[1 2 3 4 5 6] the output vector should have unique element with fixed number of swap.
swapping of vector should be random.
oltre 8 anni fa | 1 risposta | 0
