代码搜索结果

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

chap5_3s.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

show_tan.c

#include #include void main(void) { double pi = 3.14159265; printf("Tangent of pi is %f\n", tan(pi)); printf("Tangent of pi/4 is %f\n", tan(pi / 4.0)); }

cp0702_analytical_waveforms.m

% % FUNCTION 7.3 : "cp0702_analytical_waveforms" % % Definition of the analytical expression for the first 15 % derivatives of the Gaussian pulse % % The function receives in input: % 1) the ti

13kfft0.c

#include "stdio.h" #include "13kfft.c" #include "math.h" main() { int i,j; double pr[64],pi[64],fr[64],fi[64]; for (i=0; i

damping.m

function damping(r,R,h,l,m) a=0; q=acos((r-h)/r); t=1; w=3*pi/2;p=0; k=((2*q)*sqrt(9.8))/((5*pi)*sqrt(r));u=1; d=0; x=sqrt(((r-(r*cos(q)))*(r-(r*cos(q))))+(r*sin(q)*(r*sin(q))));x;u=1; while p

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