代码搜索结果

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

ex2336.m

%例23-36 函数绘图 subplot(2,2,1) fplot(@sin,[0 2*pi]) title('y=sin(x)') subplot(2,2,2) f='cos(x)+sin(3*x)'; ezplot(f,[-2*pi 2*pi -3 3]) title('y=cos(x)+sin(3x)') subplot(2,2,3) ezpolar('2+3*sin(t)

ex2312.m

%例23-12 双纵轴绘图 t=0:0.02*pi:7; x=cos(t); y=exp(t); [ax,ha,hb]=plotyy(t,x,t,y) %句柄都是一些小数数值,用于标识各个对象 set(ax(1),'XTick',[0 pi 2*pi],'XTickLabel',{'0','pi','2pi'}) set(ha,'LineStyle','--','Color','r')

ex2417.m

%例24-17 设置坐标轴 %Ex24-17 set axis close all subplot(1,3,1) ezsurf(@(t,s)(sin(t).*cos(s)),@(t,s)(sin(t).*sin(s)),@(t,s)cos(t),[0,2*pi,0,2*pi]) axis auto;title('auto') subplot(1,3,2) ezsurf(@(t,s)(

gnuplot.scr

set terminal png # gnuplot recommends setting terminal before output set output "graph1.png" # The output filename; to be set after setting set xrange [-pi:pi] # we want

fftanalysis.m

%已知序列 x(n) = 2*sin(0.48*pi*n) + cos(0.52*pi*n) ,0 =< n

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

exp2_3_.m

%plot绘图命令的使用 close all %关闭打开了的所有图形窗口 clc %清屏命令 clear %清除工作空间中所有变量 %定义时间范围 t=[0:pi/20:8*pi]; y=sin(t); plot(t,y,'b:square') % r表示线的颜色为红色,此外 y(黄色)g(绿色)b(蓝色) %

exp2_5_.m

%图形文字标示命令的使用 clear close all clc t=[0:pi/20:5*pi]; plot(t,sin(t),'r:*') axis([0 5*pi -1.5 1.5 ]) %给x轴和y轴命名 xlabel('t(deg)') ylabel('magnitude') %给图形加标题 title('sine wave from zero to 5\pi')