代码搜索结果
找到约 10,000 项符合
6 的代码
ex6_6.txt
Example 6.6 Handling Requests
public void processRequest(ServletRequest req, ServletResponse res)
throws IOException, ServletException {
Processor processors = new DebuggingFilter(
n
reinf6_6.m
%%%%%%%%%%% Reinforcement Problem 6.6 %%%%%%%%%%%
% Discrete-Time Control Problems using %
% MATLAB and the Control System Toolbox %
% by J.H. Chow, D.K. Frederick, & N.W. Chbat
samp6_6.m
%Samp6_6
wp=0.2*pi;ws=0.3*pi;Rp=1;Rs=15; %数字滤波器截止频率、通带波纹和阻带衰减
T=0.01;Nn=128; %采样间隔
Wp=wp/T;Ws=ws/T; %得到模拟滤波器的频率—采用脉冲响应不变法的频率转换形式
[N,Wn]=buttord(Wp,Ws,Rp,Rs,'s'); %计算模拟滤波器的最小阶数
[z,p,k]=but
ch6_6.c
#include
#define M 10
#define MAX 100
void shortpath_FLOYD(int cost[][M],int path[][M],int length[][M],int n)
{ int i,j,k,wm;
for(i=0;i
ch6_6.txt
void shortpath_FLOYD(int cost[][M],int path[][M],int length[][M],int n)
{ int i,j,k,wm;
for(i=0;i
main6-6.cpp
// main6-6.cpp 检验bo6-6.cpp的主程序
#define CHAR // 字符型
// #define INT // 整型(二者选一)
#ifdef CHAR
typedef char TElemType;
TElemType Nil=' '; // 字符型以空格符为空
#define form "%c" // 输入输出的格式为%c
#
bo6-6.cpp
// bo6-6.cpp 二叉树的三叉链表存储(存储结构由c6-6.h定义)的基本操作(21个)
#define ClearBiTree DestroyBiTree // 清空二叉树和销毁二叉树的操作一样
void InitBiTree(BiPTree &T)
{ // 操作结果:构造空二叉树T
T=NULL;
}
void DestroyBiTree(BiPTr
c6-6.h
// c6-6.h 二叉树的三叉链表存储表示
typedef struct BiTPNode
{
TElemType data;
BiTPNode *parent,*lchild,*rchild; // 双亲、左右孩子指针
}BiTPNode,*BiPTree;
example6_6.m
%目标函数
function F = tracklsq(input)
a=input(1);
b=input(2);
opt = simset('solver','ode5','SrcWorkspace','Current');
[tout,xout,yout] = sim('trackoptim',[0 5],opt);
%计算误差信号
F = yout-1;
%调