代码搜索:Raspberry Pi
找到约 10,000 项符合「Raspberry Pi」的源代码
代码结果 10,000
www.eeworm.com/read/357506/10208387
m program_11_13.m
% Program 11_13
% DFT Sample Computation Using CZT
%
n = 0:31;
x = sin(2*pi*11*n/64);
A = exp(i*2*pi*84/512);
V = exp(-i*2*pi/512);
XC = czt(x, 8, V, A);
disp('CFT Samples')
disp(abs(XC));
www.eeworm.com/read/357498/10208493
m 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;
www.eeworm.com/read/357233/10213320
m 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;
www.eeworm.com/read/357227/10213391
c poly_phase.c
/*
* $Log: poly_phase.c,v $
* Revision 1.1 2000/05/03 14:30:04 bjc97r
* Initial revision
*
*
*/
char *_poly_phase_id = "$Id: poly_phase.c,v 1.1 2000/05/03 14:30:04 bjc97r Exp $";
#include
www.eeworm.com/read/357171/10214080
m 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)),'
www.eeworm.com/read/357171/10214092
m 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 '二维彗星轨迹图'
www.eeworm.com/read/357171/10214100
m 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(
www.eeworm.com/read/357171/10214101
m 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
www.eeworm.com/read/357171/10214102
m 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
www.eeworm.com/read/357171/10214103
m 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))