fixed 'numPlots' to work in matlab