MATLAB: Histogram decimal value error histogram Undefined function 'histogram' for input arguments of type 'double', in this code x = randn(1000,1); nbins = 25; h = histogram(x,nbins) Best Answer The histogram function was introduced in R2014b. If you’re using an earlier version, use hist (or one of its friends). Related SolutionsMATLAB: How to write Continue Long Statements on Multiple Lines Use repmat to avoid manually typing all 160 of those ‘%q’ repeats! Try this: formatSpec = ['%f',repmat('%q',1,160), '%[^\n\r]']; MATLAB: Dear friends, the long matlab command that I have written is error. I want to be spelled the same way but without error. Do it like the second example on this documentation page about continuing long statements on multiple lines. Related QuestionThe headerlines are not always properly detected by readtableHistogramHow to write Continue Long Statements on Multiple LinesHistogramI cannot use histogram instead of hist. WhyHistogram
Best Answer