MATLAB: How can i scale the axis in such a way that y axis in between 10 and 10^10 and x axis in between 10 and 10^6?please help

scaling axis

E0=6.83*4.77^1.5*10^9; d0=0.4; d=[20 40 60 80 100 200 400 600 800 1000]; E1=8.85*10^-12; B1=(d./d0).^(1/3) ; % Field enhancement factor value E2=E0.*(1./B1); U0=0.5.*E1.*E2.^2.*(d0./d).^(2/3); x0=[1 2 3 4 5 6]; x=10^x0; y=x; plot(d,U0)

Best Answer

Use axis command
axis([xmin xmax ymin ymax])
% for your case
axis([10 10^6 10 10^10])