如何做到坐标轴刻度间距一样但刻度值间距不一样
如图,注意横坐标刻度,怎么做到的?仅想到土方法, 细节请自调
clc; clear
tt=1:2030; aa=sin(0.4*pi*tt);
h1=axes('position',[.1.1.5.8]);
pp=1:2000; plot(tt(pp),aa(pp));
set(h1,'box','off'); hold on; plot(,,'k');
h2=axes('position',[.6.1.25.8]);
pp=2000:2030; plot(tt(pp),aa(pp))
set(h2,'YTick',[],'YTickLabel',[])
hold on; plot(,,'w')
页:
[1]