代码搜索结果

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

linc.pro

; $Id: linc.pro,v 1.2 2002/03/14 11:49:10 riccardi Exp $ function linc, x ;+ ; ; linc(x) = 0 if x eq 0 ; = (cos(2*!PI*x)-sin(2*!PI*x)/(2*!PI*x))/(2*!PI*x) otherwise ; ; it's the Fouri

sinc_aolib.pro

; $Id: sinc.pro,v 1.2 2002/03/14 11:49:14 riccardi Exp $ function sinc, x ;+ ; ; sinc(x) = 1 if x eq 0 ; = sin(2*!PI*x)/(2*!PI*x) otherwise ; ; it's the Fourier transform of Pup(x)= 1

7-4.m

t = 0:pi/50:10*pi; i=1; h=plot3(sin(t(i)),cos(t(i)),t(i),'*','erasemode','none'); %设定擦除模式 grid on axis([-2 2 -2 2 -1 10*pi]) title '程序动画示例' for i=2:length(t) set(h,'xdata',sin(t(i)),'

7-1.m

t = 0:.01:2*pi; x = cos(2*t).*(cos(t).^2); y = sin(2*t).*(sin(t).^2); comet(x,y); title '二维彗星轨迹图'

6-7.m

theta = 2*pi*rand(1,100); rose(theta) title '极坐标系下的直方图'

2-9.m

subplot(2,1,1) [x,y] = meshgrid(-2:.2:2); %为三维画图产生x和y矩阵 z = x.^exp(-x.^2-y.^2); [C,h] = contour(x,y,z); %等高线contour函数,在后面的轮廓线函数里讲解 clabel(C,h); %标注等高线值 subplot(2,1,2) x = -pi:pi/20:pi; plot(

2-5.m

subplot(211) %分割窗口对象 Z = peaks; plot(Z) subplot(212) x = -pi:.1:pi; y = sin(x); plot(x,y) hold on plot(x+1,y,'.') %设置点型 hold off

2-6.m

figure; %下面的符号函数在下面章节中会详细说明 subplot(2,3,1) %对于变化剧烈的函数,可用fplot来进行较精确的绘图 fplot('humps',[0 1]) subplot(2,3,2) fplot('abs(exp(-j*x*(0:9))*ones(10,1))',[0 2*pi]) subplot(2,3,3) fplot('[tan(x),sin(x

2-8.m

t = 0:pi/20:2*pi; [x,y] = meshgrid(t); subplot(2,2,1) z = sin(x)+cos(y); plot(t,z) grid on %打开网格线 subplot(2,2,2) plot(t,z) axis([0 2*pi -2 2]) hold on %在当前图形上绘制数据 plot(t,sin(x).*cos(y))

ex10_5.m

t=0:pi/20:2*pi; y1=sin(t); y2=cos(t); figh=figure('Position',[30,100,800,350]); axes('GridLineStyle','-.','XLim',[0,2*pi],'YLim',[-1,1]); line('XData',t,'YData',y1,'LineWidth',2); line(t,y2); g