MATLAB: How can I set axis’s tick or scale like photo.. help plz,,

axisplotrangescaletickxtick

CD = @(Re) 24./Re+(2.6*Re/5)./(1+(Re/5).^1.52)+(0.411*(Re/263000).^(-7.94))./(1+(Re/263000).^(-8))+(0.25*Re/10^6)./(1+Re/10^6);
fplot(CD, [0.1 1000000])
it is my result but I want like under. what should I use which command to get under.I know axis scale is a problem. I dont know which command need. please help me

Best Answer

Add these lines:
grid
set(gca, 'XScale','log', 'YScale','log', 'YLim',[0.01 100])
so the complete code is now:
CD = @(Re) 24./Re+(2.6*Re/5)./(1+(Re/5).^1.52)+(0.411*(Re/263000).^(-7.94))./(1+(Re/263000).^(-8))+(0.25*Re/10^6)./(1+Re/10^6);
fplot(CD, [0.1 1000000])
grid
set(gca, 'XScale','log', 'YScale','log', 'YLim',[0.01 100])
See Axis Properties for more options.
EDIT —
Added plot image —