代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
exp2_3.m
%plot绘图命令的使用
clc %清屏命令
clear %清除工作空间中所有变量
%定义时间范围
t=[0:pi/20:9*pi];
y1=sin(t);
y2=cos(t);
plot(t,y1,t,y2)
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')
gaussian.c
#include
#define pi 3.1415
double
gaussian(double x)
{
double resu;
resu=-0.5*x*x;
resu=exp(resu);
resu=resu/sq
angledisplay.m
% This is a subfunction of rrrproject3.m
% Created by Gan Tao taogan@eng.buffalo.edu
% Graduate Student of SUNY Buffalo
% Date: Jan.2004
% angledisplay.m is to display the absolutes angle of eac
13kfft0.c
#include "stdio.h"
#include "13kfft.c"
#include "math.h"
main()
{ int i,j;
double pr[64],pi[64],fr[64],fi[64];
for (i=0; i
shiyan.m
Q=0:pi/100:pi;
e=pi*(sin(Q)-sin(10/pi));
y1=sin(4*e);
y2=1/sin(0.5*e);
Y=y1/y2;
figure(1);
%subplot(311)
%plot(Q,real(Y));
plot(Y);
grid
title('信号s时域波形');
xlabel('n角度');
ylabel('s幅度');
fi
type_b.c
///////////////////////////////////////////////////////////////////////
// C O N F I G I S O 1 4 4 4 3 T Y P E
///////////////////////////////////////////////////////////////////////
unsigned ch
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;
chap9_7i.m
%Flight Simulator Servo System
clear all;
close all;
J=2;
b=0.5;
kv=2;
kp=15;
kd=6;
f1=(b+kd*kv);
f2=J;
F=1;
A=1;
t=[0:0.001:10]'; %Simulation time
r=A*sin(2*pi*F*t);
dr=2*pi