代码搜索结果

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

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))

ft1.m

% 2.实现函数fourier.m syms x; f=abs(x)/x; %给出待展开函数 xx=[-pi:pi/200:pi]; %给出所有要作图的点 xx=xx(xx~=0); %去掉为0的点 yy=subs(f,x,xx); %计算f(x)的值 plot(xx,yy); %作f(x)图 hold on n=30; %给出展开的阶数 [a,b,f1

toeplitz_page110.m

%%%%%%可能是程序写的不好,算法的仿真结果不行,分辨力较差@@@@@@@@@ clc; clear ; close all; tic M=20;%阵元数目 N=3;%信源数目 b=5;%形成的波束个数 snap=1000;%快拍数目 C=3e8; f0=10e6; lamda=C/f0; d=0.5*lamda; % k=d/lamda; theta0=50; t

untitled17.m

t=-2:0.001:2; tao=0.5 x=(1/tao)*exp(-pi*((t/tao).^2)); plot(t,x) grid on xlabel('t'); ylabel('x(t)'); title('(1/tao)*exp(-pi*(t/tao)^2)')

ellipse.asv

clear all close all clc Fs=2000*pi; Rp=0.5; Rs=60; typeo=1; % switch typeo % case 1 % type='bandpass'; % case 2 % type='stop'; % case 3 % type='high'; % case 4 % type=