- 博客(24)
- 收藏
- 关注
原创 3
clcclear%The given conditionsWsc=2*pi*80; Wob=Wsc;M=3.2; %The selected PID gains Kpv=M*Wsc; %the proportional gains of the speed controllerKiv=0.2*Kpv*Wsc; %the integral gains of t
2017-07-09 20:42:43 387
原创 2
clcclear%The given conditionsWsc=2*pi*80; Wob=Wsc;M=3.2; %The selected PID gains Kpv=M*Wsc; %the proportional gains of the speed controllerKiv=0.2*Kpv*Wsc; %the integral gains of t
2017-07-09 20:41:06 339
原创 1
clcclear%The given conditionsWsc=2*pi*80; Wob=Wsc;M=3.2; %The selected PID gains Kpv=M*Wsc; %the proportional gains of the speed controllerKiv=0.2*Kpv*Wsc; %the integral gains of t
2017-07-09 20:39:18 324
转载 tt2
clcclear allLp=4.3e-3; Ra=13.51; f=logspace(1,5,200); w=2*pi*f;num=[1];den=[Lp/Ra 1];[mag,pha]=bode(num,den,w); figure(2);num=[1];for i=0:8 Lp=Lp*(0.8+i*0.05); den=[Lp/Ra 1];
2017-06-25 21:20:02 563
转载 tt1
clcclear allLp=4.3e-3; Ra=13.51; f=logspace(1,5,200); w=2*pi*f;num=[1];den=[Lp/Ra 1];[mag,pha]=bode(num,den,w);figure(1);loglog(f,mag,'-r','LineWidth',1);xlabel('f/Hz');ylabel('Magnitud
2017-06-25 21:17:14 531
转载 mt4
clcclear allLp=4.3e-3; Ra=13.51; f=logspace(0,6,1000); w=2*pi*f;num=[1];den=[Lp/Ra 1];[mag,pha]=bode(num,den,w);figure(1);loglog(f,mag,'b','LineWidth',2);xlabel('f/Hz');ylabel('Magnitu
2017-06-25 21:08:54 583
转载 mt3
clcclear all KT=4.3e-3; KTe=KT; Jp=0.015e-3; Jpe=Jp; bo=0.0292;Kso=9.1787;Kiso=465.0942; f=logspace(0,6,1000); w=2*pi*f;numtp=[Jp bo Kso Kiso];dentp=[Jpe bo Kso Kiso];figure(1)
2017-06-25 21:07:09 765
转载 mt2
clcclear allLp=4.3e-3; %Given valueLp1=Lp*0.8;Lp2=Lp*1.2;Ra=13.51; %Designed valuef=logspace(0,6,1000); %w=2*pi*f;num=[1];for i=0:4 Lp=Lp*(0.8+i*0.1); den=[Lp/Ra 1]; [mag,pha
2017-06-25 20:57:40 355
原创 Mt1
clcclear alla=20*pi;b=100*pi;c=500*pi;Jp=0.015e-3;f1=1/a;f2=1/b;f3=1/c;K=Jp/(f1*f2+f1*f3+f2*f3);bo=Jp^2/K*a*b*c;Kso=K*bo/Jp*(f1+f2+f3);Kiso=K*bo/Jp;f=logspace(-1,4,1000); w=2*pi*f;num=
2017-06-25 19:24:25 466
原创 检索
void touristResult::on_researchBtn_clicked(){ qDebug()keyWordComboBox->currentIndex(); QString reSearchWord=ui->searchLineEt->text(); switch(ui->keyWordComboBox->currentIndex()) {
2017-06-24 12:04:20 309
原创 登录
void WelcomeWidget::on_loginBtn_clicked()//点击登录按钮登录时,核对用户名及密码{ /*if(ui->adminCheckBox->isChecked()) { m_pAdmin->showMaximized(); } else { m_pUser->showMaximized();
2017-06-24 12:02:13 297
转载 1
%*********************%%Program for Project 3clcclose allLp=4.3e-3; %Given valueRa=13.51; %Designed valuef=logspace(0,6,1000); %w=2*pi*f;num=[1];den=[Lp/Ra 1];[mag,pha]=bode(num,den,w);
2017-06-01 15:52:40 326
转载 matlab
n=0:0.01:2;for i=1:4switch i case 1 ,N=2; %频率点 case 2 ,N=5; %取4种滤波器 case 3,N=10; case 4,N=20;end[z,p,k] =buttap ( N ); %设计butterworth滤波器[b,a] = zp2tf(z,p,k); %将零
2017-03-01 20:34:01 440
原创 修正的AB4-AM4解法
#include#include#include#define H 0.1int main(){ float x,y,r=3; float k1,k2,k3,k4,t[100]={0},Y[100]={0},R[100]={0}; float fun1(float,float); int i,j,n; printf("请输入x,y的初值:\n"); scanf("%f%f",
2016-12-25 21:18:56 493
原创 AB4-AM4解法
#include#include#include#define H 0.1int main(){ float x,y,r=3; float k1,k2,k3,k4,t[100]={0},Y[100]={0}; float fun1(float,float); int i,j,n; printf("请输入x,y的初值:\n"); scanf("%f%f",&x,&y); pr
2016-12-25 21:18:19 563
原创 AB4解法
#include#include#include#define H 0.1int main(){ float x,y,r=3; float k1,k2,k3,k4,t[100]={0}; float fun1(float,float); int i,j,n; printf("请输入x,y的初值:\n"); scanf("%f%f",&x,&y); printf("请输入运算
2016-12-25 21:17:38 795
原创 常微分方程的RK4解法
#include#include#include#define H 0.1int main(){ float x,y,r=3; float k1,k2,k3,k4; float fun1(float,float); int i,n; printf("请输入x,y的初值:\n"); scanf("%f%f",&x,&y); printf("请输入运算次数:\n"); sca
2016-12-25 21:16:39 5644
转载 3次样条插值
# include # include # include # define delta 1e-6 # define N 100 int main() { int i,j,t,r,n,u,c=0; float p,L,max,s,h,D1,D2; float x[N],M[N],y[N]; float a[N][N+1]=
2016-12-08 22:31:13 847
原创 3次样条插值
# include # include # include # define delta 1e-6 # define N 100 int main() { int i,j,t,r,n,u,c=0; float p,L,max,s,h,D1,D2; float x[N],M[N],y[N]; float a[N][N+1]=
2016-12-08 22:24:45 1040
转载 确定误差
#include#includefloat f(float x) { float f; f=x*x*x/3-x; return(f);}float df(float x) { float df; df=x*x-1; return (df);}int main(){ floa
2016-10-30 14:20:25 417
转载 牛顿迭代法
#include#includefloat f(float x) { float f; f=x*x*x/3-x; return(f);}float df(float x) { float df; df=x*x-1; return (df);}int main(){ float
2016-10-30 14:18:27 440
转载 从大到小
#include int main(){ float S=0,T,N; printf("请输入N:"); scanf("%f",&N); while (N>=2) { T=1/(N*N-1); N=--N; S+=T; } printf("S=%f \n ",S)
2016-10-30 14:16:28 290
转载 从小到大
#include int main(){ float S=0,T,N,i=2; printf("请输入N:"); scanf("%f",&N); while (i<=N) { T=1/(i*i-1); i=++i; S+=T; } printf("S=%f \n"
2016-10-30 14:15:28 301
转载 高斯消去法
# include# include# define delta 1e-6#define N 100int main(){ int i,j,t,r,n,u,c=0; float p,L,max,s; float X[N]; float a[N][N+1]; printf("请输入系数矩阵的阶数:\n"); scanf("%d",&n); printf("输入的增广矩阵系
2016-10-30 14:10:57 457
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人