Prev: no data acquisition toolbox in 64 bit matlab r2009a?
Next: set size limit for displaying arrays in console
From: Oscar Marietti on 15 Mar 2010 17:49 Try figure pDataMin = min(projectedData); pDataMax = max(projectedData); pDataStep =abs((pDataMax-pDataMin)/50); [nPlus,xoutPlus] = hist(projectedData(positiveSeeds),pDataMin:pDataStep:pDataMax); [nMinus,xoutMinus] = hist(projectedData(negativeSeeds),pDataMin:pDataStep:pDataMax); stackData=[nMinus',nPlus']; bar(xoutPlus,stackData,'stacked');
From: Oscar Marietti on 15 Mar 2010 17:50
try figure pDataMin = min(projectedData); pDataMax = max(projectedData); pDataStep =abs((pDataMax-pDataMin)/50); [nPlus,xoutPlus] = hist(projectedData(positiveSeeds),pDataMin:pDataStep:pDataMax); [nMinus,xoutMinus] = hist(projectedData(negativeSeeds),pDataMin:pDataStep:pDataMax); stackData=[nMinus',nPlus']; bar(xoutPlus,stackData,'stacked'); |