![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 years 前 | 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...
3 years 前 | 1 个回答 | 0