代码搜索结果
找到约 10,000 项符合
7 的代码
list7-7.cpp
//Listing 7-7
// Example of constructing one vector
// with a range of objects from another vector
#include
#include
#include
#include
using n
ex7_7.m
% ex7_7
% 离散控制系统的传递函数矩阵和状态转移矩阵
G=[0 1;-3 -5];
H=[1;-3];
C=[1 0];
syms z n;
Phek=inv(z*eye(size(G))-G)*z,
Phe=inv(z*eye(size(G))-G)*H
example7_7.m
%首先,创建包含了期望的频率响应的矩阵Hd
[f1,f2] = freqspace(21,'meshgrid');
Hd = zeros(21);
Hd(7:15,7:15) = 1;
Axis([-1 1 –1 1 0 1.2]),
colormap(jet(64))
mesh(f1,f2,Hd)
%期望的滤波器的频率响应见图7-16
%然后,设计通过此响应的滤波器
h
ex7_7.m
a=[1,2,-2;1,1,1;2,2,1];
b=[9;7;6];
[x,n]=jacobi(a,b,[0;0;0])
[x,n]=gauseidel(a,b,[0;0;0])
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"
al7_7.c
/*案例代码文件名:AL7_7.C*/
/*功能:数组名作为函数参数,求平均成绩*/
float aver(float a[ ]) /*定义求平均值函数,形参为一浮点型数组名*/
{int i;
float av,s=a[0];
for(i=1;i