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...
3年以上 前 | 1 件の回答 | 0