title: Having error 'Undefined function or variable 'applyhatch_plusC'' when ploting hatched bar graphs in MATLAB R2015b
body: <p>I want to plot bar charts that have filled with different patterns and colors. Here is my code:</p>
  <p>data_forest=xlsread('for.xlsx');</p>
  <p>colors={'r','y','w','g'};</p>
  <p>figure();</p>
  <p>for ii=0:3</p>
  <pre><code>bar(ii*6+(1:6),data_forest(ii*6+(1:6)),'FaceColor',colors{ii+1})
  
  hold on
  </code></pre>
  <p>end</p>
  <p>hold off</p>
  <p>legend('Summer','Fall','Winter','Spring');</p>
  <p>set(gca,'Xtick',1:1:24,'XTickLabel',{'Evapotranspiration','Soil moisture',' Air Temperature','Total Runoff','Sensible Heat Flux','Soil Temperature',...
  'Evapotranspiration','Soil moisture',' Air Temperature','Total Runoff','Sensible Heat Flux','Soil Temperature',...
  'Evapotranspiration','Soil moisture',' Air Temperature','Total Runoff','Sensible Heat Flux','Soil Temperature',...
  'Evapotranspiration','Soil moisture',' Air Temperature','Total Runoff','Sensible Heat Flux','Soil Temperature'});</p>
  <p>set(gca,'XTickLabelRotation',90)</p>
  <p>ylabel('Relative Change (%)')</p>
  <p>grid on</p>
  <p>ylim([-50 60])</p>
  <p>applyhatch_plusC(gcf, '-x.', 'rywg');</p>
  <p>But I have received this error:</p>
  <p>Undefined function or variable 'applyhatch_plusC'.</p>
  <p>Error in relative_changes (line 23)</p>
  <p>applyhatch_plusC(gcf, '-x.', 'rywg');</p>
  <p>Could somebody help me?</p>
  <p>I would appreciate it if you help me.</p>