I have a bar plot and want to label my own axis but is dynamic to the number of bins specified by the user.
Lets say I have:
label = {'0 to 10','10 to 20','20 to 30'}
set(gca,'XTickLabel',label)
On my mfile I want it to be dynamic and automate the "label" creation.
Ex.) Now I change settings...