如题,因为刻度实在分得太细,导致坐标轴糊成一片,请问这种情况怎么解决?
ppgwatch=evalin('base','ppgwatch');
y=ppgwatch(:,2);
Fs=10;
T=1/Fs;
N=height(y);
t=(0:1:N-1)*T;
t=t';
y = table2array(ppgwatch(:, 2));
Y = fft(y);
Y=Y(1:N/2+1);
A=abs(Y);
f=(0:1:N/2)*Fs/N;
f=f';
A_adj=zeros(N/2+1,1);
A_adj(1)=A(1)/N;
A_adj(end)=A(end)/N;
A_adj(2:end-1)=2*A(end-1)/N;
subplot(2,1,1);
plot(f,A_adj);
set(gca,'XTick',0.0017:5);
set(gca,'YTick',0:0.5:3.5e+03);
axis([0 5 0 3.5e+03]);
xlabel=('hz');
ylabel=('幅值');