MATLAB: Problem plotting random vector

hy, I have to make a hist(x,vet) where vet is a random vector of 1000 elements and vet is a vector of 10 elements. but the compuer tells me warning: hist: bin values not sorted on input how can i resolve? thanks

Best Answer

hist(x,sort(vet))
Related Question