I can't plot two lists as histograms as different colors on the same plot. Hist wants 'Numeric Input'
2 views (last 30 days)
Using R2017a. Trying to graph two lists (numeric arrays) on the same histogram in different colors. I've written:
idx1 = GSSum > manual_threshold
list1 = GSSum(idx1)
idx2 = GSSum < manual_threshold
list2 = GSSum(idx2)
H1 = hist(list1, 'Facecolor', [0.7 0 0.7])
H2 = hist(list2, 'Facecolor', [ 0 0.9 0])
Error given is: Error using hist (line 48) Input arguments must be numeric.