代码搜索:协方差矩阵
找到约 10,000 项符合「协方差矩阵」的源代码
代码结果 10,000
www.eeworm.com/read/273093/10927409
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
www.eeworm.com/read/273093/10927600
m rand.m
%R=rand(m,n) 生成(0,1)上均匀分布的m行n列随机矩阵
%RAND Uniformly distributed random numbers.
% RAND(N) is an N-by-N matrix with random entries, chosen from
% a uniform distribution on the interval (0.0,1.0
www.eeworm.com/read/418560/10940219
txt matrix.txt
/*------------------------这是一个用于计算行列式的值与两个矩阵的乘积的C语言程序-----------------------------*/
/* Note:Your choice is C IDE */
#include "stdlib.h"
#include "stdio.h"
float hlsdz();
void jzcf();
main()
www.eeworm.com/read/417350/10993260
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/417350/10993316
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/417350/10993375
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/469820/6927392
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/123298/6960086
m mka_m_series.m
% 产生生成矩阵A;
%%% there is 4095 points of the m series;
clear all;
A=zeros(12,12);
for i=1:11
A(i,i+1)=1;
end;
A(12,1)=1; A(12,7)=1; A(12,9)=1; A(12,12)=1;
% originate the vector;
www.eeworm.com/read/465779/7045935
m save.m
function save_result(h)
handles = guihandles(h);
guidata(gcf, handles);
str = get(handles.outputdata_listbox,'String');
if isempty(zcf_data)
warndlg('输入数据有误,可能为空,可能数据矩阵有不合法的字符!', '警告!');
els
www.eeworm.com/read/140741/7069838
cpp le_totalchoicegauss.cpp
//LE_TotalChoiceGauss.cpp 全选主元高斯消去法
#include //输入输出流头文件
#include "LinearEquation.h" //线性方程(组)求解头文件
void main()
{
int i;
double a[4][4] = //实系数矩阵
{
{0.2368, 0.2471,