代码搜索结果
找到约 36,166 项符合
Raspberry Pi 的代码
periodic.m
function [w, P] = Periodic(x, N0)
% 周期图法估计x(n)的功率谱,输出N0个点
N = length(x);
w = 1:1:N0;
w = (w-1)*pi/N0;
for m=1:N0
P(m) = 0;
for n=1:N
P(m) = P(m)+x(n)*exp(-j*w(m)*n);
end
untitled3.m
x1=rands(400)*pi;
x2=rands(300)*pi;
x1=rands(100)*pi;
p1=x1;
p2=[x2;x3];
P=[p1;p2];
deltatt=0.05;
T'=p2+deltatt*(10*sin(p1)-2*p2);
net=newff(minmax(P),[9 1],{'tansig','purelin'});
net.trainPa
untitled2.m
x1=rands(400)*pi;
x2=rands(300)*pi;
x3=rands(100,1)*pi;
p1=x1;
p2=[x2;x3];
P=[p1 p2];
deltatt=0.05;
T=p2+deltatt*(10*sin(p1)-2*p2);
Q=P';
net=newff(minmax(Q),[9 1],{'tansig','purelin'});
net
p1-98.cpp
#include
//以下是几个简单宏替换预处理指令
#define YES 1
#define PI 3.1415926
#define RAD PI/180
#define MESG "This is a string."
//以下是主程序
main() {
//以下各语句使
p1-12.cpp
#include
const double PI=3.1416; //声明常量(const变量)PI为3.1416
main()
{
//声明3个变量
double r,l,s;
//输入圆的半径
coutr;
//计算圆的周长
p1-100.cpp
#include
#define PI 3.1416
main() {
int i=100;
#if 1
cout
p1-14.cpp
#include
const double PI=3.1416; //声明常量(const变量)PI为3.1416
main()
{
//声明3个变量
double r=3,l,s;
//计算圆的周长
l=2*PI*r;
cout
music.m
%program p509
var=sqrt(1/exp(1.0));%var等于e的负1次方的开方
v=var*randn(1,1000);%定义随机噪声
n=1:1000;%采样点个数为1000
w0=1.4*pi;
xn=exp(j*pi*n-j*pi)+exp(j*w0*n-j*0.7*pi)+v;
m=-500:500;
[r,lag]=xcorr(xn,500,'bi
music1.m
tic %程序计时开始
clear;
clc;
n=0:1/255/1000:1/1000; %时间长度1ms,采样频率256KHz
w1=2000*pi
s1=sin(w1*n);
subplot(3,1,1)
plot(s1) %输入正弦信
q517.m
%《MATLAB在电子信息课程中的应用》第五章例5.17程序q517
% 交流谐振电路
% 电子工业出版社出版 陈怀琛 吴大正 高西全合著 2001年10月
r1=2; r2=3; L1=0.75e-3; L2=0.25e-3; C=1000e-12;rs=28200;
L=L1+L2;r=r1+r2;rse=rs*(L/L1)^2; % 折算内阻
f0=1/(2*pi*sq