代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
cp0702_analytical_waveforms.m
%
% FUNCTION 7.3 : "cp0702_analytical_waveforms"
%
% Definition of the analytical expression for the first 15
% derivatives of the Gaussian pulse
%
% The function receives as input:
% 1) the ti
2_2.cpp
#include
#include
const double pi = 3.1415926;
void main()
{
double radius1, radius2;
cout radius1 >>radius2;
cout
arotineoffft.txt
下面给出FFT和IFFT的算法:
struct FFT_paras
{
int N; // 输入序列长度
float *pRin; //输入的实部,返回模
float *pIin; //输入的虚部,返回幅角
float *pRout; //返回FFT或IFFT结果的实部
float *pIout; //返回FFT或IFFT结果的虚部
bool
6-7.m
theta = 2*pi*rand(1,100);
rose(theta)
title '极坐标系下的直方图'
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 '二维彗星轨迹图'
feedb.m
% feedbl.m
% 反馈线性化
% 初始化
clear
X1 = [rand(1,300)*pi, rand(1,100)*pi];
X2 = [rands(1,300)*pi, zeros(1,100) ];
P = [X1; X2];
dt = 0.05;
T= X2 + dt*(10*sin(X1)-2*(X2));
[R,Q] = size(P);
S1
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')
exp2_3.m
%plot绘图命令的使用
clc %清屏命令
clear %清除工作空间中所有变量
%定义时间范围
t=[0:pi/20:9*pi];
y1=sin(t);
y2=cos(t);
plot(t,y1,t,y2)