How to delete Index which has 0 Value and replicate the matrix from start
1 view (last 30 days)
Hello Everyone, I hope you are doing well. I have an array named as Dataset. I have replace 0 in for those values which has histogram count less than 50 percent of maximum value.
Now in my new array Dataset Has some Values which are equal to 0; I want to delete 0 in array and replicate the matrix from the start to complete matrix length for example the Dataset has length 137x1.
Binedges(end) = Inf;
deleted_data_idx = false(size(Bindata));
for i=1: length(ValueofHistogram)
deleted_data_idx(Bindata >= Binedges(i) & Bindata < Binedges(i+1)) = true;