代码搜索结果
找到约 10,000 项符合
7 的代码
chap7-7.txt
// 程序7-7
public class testException{
static void Test( ) throws userException{
userException e;
e=new userException("自定义异常" );
throw e; // 自定义异常必须采用throw
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=
chap7_7.mdl
Model {
Name "chap7_7"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes
plot_7_7.m
% make figure 7.7
Z2=zeros(4,491);
load run2
tail=[0 5 8 66];
z=sum(real(E).^2,2);
[y ind]=sort(z);
newE=E(ind,:);
for i=1:4,
Z2(i,:)=sum((real(newE(1:400-tail(i),:)).^2))/(400-tail(i));
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"
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"
soln7_7.cpp
// Soln7_7.cpp
#include // For stream input/output
using std::cout;
using std::endl;
class CStack
{
public:
CStack() : next(0) {}
void push(int i);