I have a plot in loglog system with xlim([15 350]).
I want to keep all XTick lines for the grid, but write only the following values on the label: x=20,50,80,100,200.
I've tried set(gca,'XTick',[20,50,80,100,200]), then the intermediate ticks (and so the grid-lines) are removed. Using set(gca,'XTickLabel',[20,50,80,100,200]) doesn't work either. (I've seen an example where two Xtick series are defined, labeled separately, then merged, but couldn't get working for my case, not even sure if possible.)
Would be grateful for some solutions here, this simple thing has been driving me crazy! :)
Thanks! also tried something like removing all XtickLabels, create a new