代码搜索:协方差矩阵
找到约 10,000 项符合「协方差矩阵」的源代码
代码结果 10,000
www.eeworm.com/read/321116/13412018
m floyd.m
function [d,path]=floyd(a,sp,ep)
% floyd - 最短路问题
%
% Syntax: [d,path]=floyd(a,sp,ep)
%
% Inputs:
% a - 距离矩阵是指i到j之间的距离,可以是有向的
% sp - 起点的标号
% ep - 终点的标号
%
% Outputs:
www.eeworm.com/read/316561/13520767
m interleaver.m
function source_out=interleaver(source_in)
%rem是求余数
%按列写,按行读
global INTERLEAVERLENGTH
len=length(source_in);
cols=fix((len -1)/INTERLEAVERLENGTH) + 1; %一帧转成列矩阵后的列数
theLastRowOfLastCol=
www.eeworm.com/read/315159/13549991
txt 4x4键c程序.txt
/********矩阵查寻键值4*4程序******按键为P1.0---P1.7*/
#include //头文件包含
//#include
#include
#define uchar unsigned char
#define TURE 1 //宏定义
#define FALS
www.eeworm.com/read/313031/13598200
m ga_tsp.m
%遗传算法解决tsp问题
function [bestpop,trace]=ga_tsp(d,termops,num,pc,cxops,pm,alpha)
%
%————————————————————————
%[bestpop,trace]=ga(d,termops,num,pc,cxops,pm,alpha)
%d:距离矩阵
%termops:种群带数
%num:每带染
www.eeworm.com/read/304826/13786013
txt 06-31.txt
例6-31 矩阵的指数和对数运算。
解:在命令窗口中输入如下命令,并按Enter键确认。
>> X=rand(5)
X =
0.7382 0.4103 0.0099 0.2722 0.9318
0.1763 0.8936 0.1389 0.1988 0.4660
0.4057 0.0579 0.202
www.eeworm.com/read/304826/13786044
txt 06-42.txt
例6- 42 求矩阵的Chollesky分解。
解:在命令窗口中输入如下命令,并按Enter键确认。
>> A=[4 -1 -1;-1 4.25 2.75;1 2.75 3.5]
A =
4.0000 -1.0000 -1.0000
-1.0000 4.2500 2.7500
1.0000 2.7500 3.5000
>> R=
www.eeworm.com/read/304826/13786071
txt 06-49.txt
例6- 49 使用reshape函数进行矩阵结构的改变。
>> A=[1:16]
A =
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
>> reshape(A,4,4)
ans =
1 5 9 13
2 6
www.eeworm.com/read/304457/13793873
txt meller-幂法.txt
#include
#include
#include
using namespace std;
#define N 3
//矩阵与向量相乘
/*void fun(float a[N][N],float u[N])
{
for(int i=0;i
www.eeworm.com/read/151345/5683695
c ll_1.c
#include "stdio.h"
#include "string.h"
#include "stdlib.h"
struct xxx //矩阵的坐标
{char ch;
int biaohao;};
struct xxx xx[7]={{'E',0},{'F',1},{'T',2},{'U',3},{'P',4},{')',5},{'#',6}};
struct xxx yy[
www.eeworm.com/read/147529/5728614
m inv.m
%求逆矩阵
%用法 B=inv(A) 其中A为数值或符号方阵,B返回A的逆
%例如
% inv([1 2;3 4]) %数值
% syms a b c d;inv([[a,b;c,d]) %符号
%
%INV Matrix inverse.
% INV(X) is the inverse of the square