Hi,
I am new to matlab. Trying to plot grap with 2 yaxis. I am trying to remove the scientific notation from yyaxis right using gca command but unable to do it. As shown in attached figure I need simple number format in yyaxis right. Can advice how to remove the scientific notation from yyaxis right.
My code is below
——
gdp = readtable(‘Zgdp’);gdpx = gdp.DateTime;gdpy = gdp.Value;pop = readtable(‘ZPop’);popy = pop.Value;popx = pop.DateTime;ax = gca;ax.FontSize = 15;yyaxis leftar = area(gdpx, popy);set(gca,'YLim', [0 2200]) yyaxis rightp2 = plot(gdpx,gdpy,'k');set(gca,'YLim',[0 22000])
Best Answer