自己再调调-
- clc; clear; close all;
- x=[100000 1000000 10000000 50000000]; y=[2021.5405 2031.605 1641.95 400.15];
- p=polyfit(x,y,1); z=polyval(p,x);
- plot(x,y,'o',x,z,'-'); hold on
- set(gca,'xtick',[]); axis([10^5 10^8 200 2200])
- %text(10^5-10^4,200-50,'$$10^5$$','interpreter','latex','fontsize',14)
- text(10^6-9*10^5,200-50,'$$10^6$$','interpreter','latex','fontsize',14)
- text(10^7-10^6,200-50,'$$10^7$$','interpreter','latex','fontsize',14)
- text(5*10^7-3*10^6,200-50,'$$5\times 10^7$$','interpreter','latex','fontsize',14)
- text(10^8-10^6,200-50,'$$10^8$$','interpreter','latex','fontsize',14)
- for i=5:8
- plot([10^i,10^i],[200 200+30],'k'); hold on
- end
- plot([5*10^7,5*10^7],[200 200+30],'k')
复制代码
[ 本帖最后由 ChaChing 于 2010-5-4 10:43 编辑 ] |