代码搜索结果
找到约 10,000 项符合
7 的代码
samp7_7.m
%Samp7_7
clf;N=1000;Fs=1000; %数据总数和采样频率
fc=200;
n=[0:N-1];t=n/Fs; %时间序列
f1=50;f2=250;
x=sin(2*pi*f1*t)+sin(2*pi*f2*t); %输入信号
b=fir1(40,fc*2/Fs); %设计40阶的低通滤波器,归一化截止频率据6-19式
al7_7.c
/*案例代码文件名:AL7_7.C*/
/*功能:数组名作为函数参数,求平均成绩*/
float aver(float a[ ]) /*定义求平均值函数,形参为一浮点型数组名*/
{int i;
float av,s=a[0];
for(i=1;i
c7-7.cpp
#include
#include
#include
using namespace std;
struct S
{int num;
string name;
char sex;
char job;
union
{int grade;
char position[10
algo7-7.cpp
// algo7-7.cpp 实现算法7.16的程序
#define MAX_NAME 5 // 顶点字符串的最大长度+1
#define MAX_INFO 20 // 相关信息字符串的最大长度+1
typedef int VRType;
typedef char VertexType[MAX_NAME];
typedef char InfoType;
#include"
examp7_7.m
t_final=100; x0=[0;0;1e-10];
[t,x]=ode45('lorenzeq',[0,t_final],x0);plot(t,x),
figure; % 打开新图形窗口
plot3(x(:,1),x(:,2),x(:,3));
axis([10 42 -20 20 -20 25]); % 根据实际数值手动设置坐标系
comet3(x(:,1),x(:,2)
chap7_7.mdl
Model {
Name "chap7_7"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes
例7-7.c
#include "reg51.h"
#define ON 1
#define OFF 0
sbit Lamp1=P0^0;
sbit Lamp2=P0^1;
sbit Lamp3=P0^0;
sbit Lamp4=P0^1;
sbit Lamp5=P0^0;
sbit Lamp6=P0^1;
sbit Lamp7=P0^0;
sbit Lamp8=P0^1;
f7_7.m
%正常人心律信号
%fid=fopen('normalecg.txt','r');
%充血性心脏心律信号
fid=fopen('heartfailure.txt','r');
%心室纤维颤动心律信号
%fid=fopen('atrialfib.txt','r');
x=fscanf(fid,'%f %f %f',[300 3]);
fclose(fid);
%采样频率
fs=
f7_7.m
%正常人心律信号
%fid=fopen('normalecg.txt','r');
%充血性心脏心律信号
fid=fopen('heartfailure.txt','r');
%心室纤维颤动心律信号
%fid=fopen('atrialfib.txt','r');
x=fscanf(fid,'%f %f %f',[300 3]);
fclose(fid);
%采样频率
fs=