代码搜索结果

找到约 10,000 项符合 Raspberry Pi 的代码

p1-12.cpp

#include const double PI=3.1416; //声明常量(const变量)PI为3.1416 main() { //声明3个变量 double r,l,s; //输入圆的半径 coutr; //计算圆的周长

p1-100.cpp

#include #define PI 3.1416 main() { int i=100; #if 1 cout

wind.for

subroutine wcos(w,nw,taper) real w(0:nw-1) pi=4*atan(1.0) do i=0,nw-1 w(i)=1 enddo m=int( (taper/100)*(nw/2) ) do i=0,m-1 w(i)=.5*(1-cos((i+1)*pi/(M+1))) enddo do i=nw-

lijian.m

n=1:1024; x=cos(0.1*2*pi*n); %tfrsp(x'); %tfrwv(x'); %tfrpwv(x'); tfrcw(x') %tfrspwv(x');

chap9_7i.m

%Flight Simulator Servo System clear all; close all; J=2; b=0.5; kv=2; kp=15; kd=6; f1=(b+kd*kv); f2=J; F=1; A=1; t=[0:0.001:10]'; %Simulation time r=A*sin(2*pi*F*t); dr=2*pi

chap10_5plant.m

%S-function for continuous state equation function [sys,x0,str,ts]=s_function(t,x,u,flag) switch flag, %Initialization case 0, [sys,x0,str,ts]=mdlInitializeSizes; case 1, sys=mdlDer

chap10_6s.m

function [sys,x0,str,ts] = spacemodel(t,x,u,flag) switch flag, case 0, [sys,x0,str,ts]=mdlInitializeSizes; case 1, sys=mdlDerivatives(t,x,u); case 3, sys=mdlOutputs(t,x,u); case

chap10_1s.m

function [sys,x0,str,ts] = spacemodel(t,x,u,flag) switch flag, case 0, [sys,x0,str,ts]=mdlInitializeSizes; case 3, sys=mdlOutputs(t,x,u); case {2,4,9} sys=[]; otherwise erro

chap10_5s.m

function [sys,x0,str,ts] = spacemodel(t,x,u,flag) switch flag, case 0, [sys,x0,str,ts]=mdlInitializeSizes; case 3, sys=mdlOutputs(t,x,u); case {2,4,9} sys=[]; otherwise erro

chap3_10plot.m

clear all; close all; L1=-pi/6; L2=pi/6; L=L2-L1; T=L*1/1000; x=L1:T:L2; figure(1); for i=1:1:3 gs=-[(x+pi/6-(i-1)*pi/6)/(pi/12)].^2; u=exp(gs); hold on; plot(x,u); end xlab