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)
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)
4年以上 前 | 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...
5年弱 前 | 1 件の回答 | 0

