MATLAB Answers


How to remove middle part of data on Histogram plot

Asked by Rajesh
on 2 May 2013

I have plotted Histogram, now I need to remove the middle part of the plotting data on histogram, in details I need to plot only first part i.e 1% to 10% and last part i.e 60% to 100% so, I need to remove middle part i.e 10% area to 60% area on histogram plot, how to do that.

  1 Comment

Define "remove". Do you want to simply zero out the middle bins (and they'll plot as a flat line along the axis), or do you want to somehow clip out the middle chunk of the bar chart (in which case you'll have to reassign the tick marks on the x axis)?

1 Answer

Answer by Iman Ansari
on 2 May 2013



  1 Comment

on 2 May 2013

Thanks a lot..

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!