سؤال

Is there a way to display the number of elements on each bar of an histogram in MATLAB?

هل كانت مفيدة؟

المحلول

On the toolbar of MATLAB plots, including a histogram plot, there's a button called Data Cursor (it looks like a blue curve with a black cross and a yellow table). Click this, and then select a bar in the histogram - it will add an explanatory label to the bar, including information about the bin count of the bar. You can pick this label up and drag it to other bars, or add additional labels to other bars.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top