I have a plot in which the y-axis ticks are like 2.400400e-01. I do not like this, I need to make it shorter and understandable. How is it possible? I used :
set(gca, 'YTickLabel', num2str(get(gca,'YTick')','%d'))
I have a plot in which the y-axis ticks are like 2.400400e-01. I do not like this, I need to make it shorter and understandable. How is it possible? I used :
set(gca, 'YTickLabel', num2str(get(gca,'YTick')','%d'))
Copyright © 2021 JogjaFile Inc.
I have found an answer from MathWorks. I will share it for future reference. This gives what we are looking for.