代码搜索结果

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

gamicheval.m

function [sol,val] = gaMichEval(sol,options) val = 21.5 + sol(1) * sin(4*pi*sol(1)) + sol(2)*sin(20*pi*sol(2)); %G=zeros(0); %val = sqrt(sol(1)) * sin(2*sol(1)) + sqrt(sol(1))*cos(5*sol(1))+5;

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

ex4-12.c

#include swap(int * pi, int * pj) { int temp; temp = * pi; * pi = * pj; * pj = temp; } main() { int a,b; int *pa, *pb; printf("Please input

ex6-1.c

#include #define PI 3.141592 #define R 3.0 #define L 2*PI*R #define S PI*R*R main() { printf("L=%f\nS=%f\n",L,S); while(1); }

ex6-2.c

#include #define PI 3.141592 #define CIRCLE(R,L,S) L=2*PI*R; S=PI*(R)*(R) main() { float r,l,s; printf("Please input r: \n"); scanf("%f", &r);