![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/16293975_1568909632917_DEF.jpg)
MRINAL BHAUMIK
Followers: 0 Following: 0
Feeds
답변 있음
Finding the indices of duplicate values in one array
A=[ 1 1 2 3 5 6 7 6] B = A'./A B = B-diag(diag(B)) [pos1 pos2]=find(B==1) o/p pos1 = 2 1 8 6
Finding the indices of duplicate values in one array
A=[ 1 1 2 3 5 6 7 6] B = A'./A B = B-diag(diag(B)) [pos1 pos2]=find(B==1) o/p pos1 = 2 1 8 6
3년 초과 전 | 2
질문
Replace previous values with NaN
I have a vector with some numbers. if any of the number comes NaN then all the number before NaN will be NaN. ex. A=[1 2 3 4 Na...
거의 4년 전 | 답변 수: 1 | 0