![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/6858390_1522118557069_DEF.jpg)
amit chatterjee
Followers: 0 Following: 0
Statistiques
3 Questions
0 Réponses
RANG
286 529
of 292 710
RÉPUTATION
0
CONTRIBUTIONS
3 Questions
0 Réponses
ACCEPTATION DE VOS RÉPONSES
100.0%
VOTES REÇUS
0
RANG
of 19 933
RÉPUTATION
N/A
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
0
ALL TIME TÉLÉCHARGEMENTS
0
RANG
of 147 879
CONTRIBUTIONS
0 Problèmes
0 Solutions
SCORE
0
NOMBRE DE BADGES
0
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
Question
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.
environ 7 ans il y a | 2 réponses | 0
2
réponsesQuestion
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 ...
environ 7 ans il y a | 1 réponse | 0
1
réponseQuestion
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.
environ 7 ans il y a | 1 réponse | 0