代码搜索结果

找到约 36,166 项符合 Raspberry Pi 的代码

ex5_15.m

subplot(2,2,1); ezplot('x^2+y^2-9');axis equal subplot(2,2,2); ezplot('x^3+y^3-5*x*y+1/5') subplot(2,2,3); ezplot('cos(tan(pi*x))',[ 0,1]) subplot(2,2,4); ezplot('8*cos(t)','4*sqrt(2)*sin(t)',[

ex5_9.m

fplot('cos(tan(pi*x))',[ 0,1],1e-4)

ex5_19.m

t=0:pi/20:2*pi; [x,y,z]= cylinder(2+sin(t),30); subplot(2,2,1); surf(x,y,z); subplot(2,2,2); [x,y,z]=sphere; surf(x,y,z); subplot(2,1,2); [x,y,z]=peaks(30); surf(x,y,z);

ex3_21.m

a=0;b=3*pi; n=1000; h=(b-a)/n; x=a; s=0; f0=exp(-0.5*x)*sin(x+pi/6); for i=1:n x=x+h; f1=exp(-0.5*x)*sin(x+pi/6); s=s+(f0+f1)*h/2; f0=f1; end s

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

chap3_11f.m

function [y]=func(x1,x2,x3) for l1=1:1:3 gs1=-[(x1+pi/6-(l1-1)*pi/6)/(pi/12)]^2; u1(l1)=exp(gs1); end for l2=1:1:3 gs2=-[(x2+pi/6-(l2-1)*pi/6)/(pi/12)]^2; u2(l2)=exp(gs2); end

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

gausamp.m

function[g1,g2]=gausamp(m,sgma) if nargin==0, m=0;sgma=1; elseif nargin==1, sgma=m;m=0; end; u=rand; z=sgma*(sqrt(2*log(1/(1-u)))); u=rand; g1=m+z*cos(2*pi*u); g2=m+z*sin(2*pi*u);

gausamp.m

function[g1,g2]=gausamp(m,sgma) if nargin==0, m=0;sgma=1; elseif nargin==1, sgma=m;m=0; end; u=rand; z=sgma*(sqrt(2*log(1/(1-u)))); u=rand; g1=m+z*cos(2*pi*u); g2=m+z*sin(2*pi*u);

fresnelc.m

function cx = fresnelc(x) cx = cos(pi * .5 .* x.^2);