|
利用5F说的, 参考下!
clc; clear;
load pseudo_sudu.txt; psd=pseudo_sudu/2.54; t=0:0.01:50-0.01;
figure; loglog(t,psd); axis([0.02,50,0.2,100]);
set(gca,'xtick',[0.02,0.05,0.1,0.2,0.5,1,2,5,10,20,50]);
set(gca,'ytick',[0.2,0.5,1,2,5,10,20,50,100]);
xlabel('T(s)'); ylabel('(in/s)'); hold on;
dd=[0.01:0.01:0.1,0.2:0.1:1,2:10,20:10:100]*2.54/100; % in->m
g=0.02*9.8; tt=2*pi*sqrt(dd/g); vv=2*pi*dd./tt*100/2.54; % m->in
plot(tt,vv,'x-')
gg=[0.001:0.001:0.01,0.02:0.01:0.1,0.2:0.1:1,2:10]*9.8; % g->m
d=0.2*2.54/100; tt=2*pi*sqrt(d./gg); vv=2*pi*d./tt*100/2.54; % m->in
plot(tt,vv,'x-') |
|