有人可以帮我编码这个系列吗

时间:2019-07-13 07:14:31

标签: matlab

我有一个矩阵,称为hs(4x6)(总共4个这样的矩阵)和h*(4x6)(一个矩阵)。谁能帮忙在这两个矩阵上编码这个系列?

summation (1 to 4 ) {(summation (1 to 6)(hs(i,j)x h*(i,j)))/sqrt*(sum(1 to 6 (hs(i,j)^2))x sqrt*(sum(1 to 6 (h*(i,j)^2))}


    clear all
H1=[.75 .95 .75 .50 .50 .25;.75 .50 .50 .95 .75 .75;.50 .95 .95 .50 .75 .50;.95 .75 .50 .95 .75 .75];
avg=[.8000 .625 .675 .625 .6875 .4375;.7875 .5625 .7875 .8000 .6125 .6750;.3125 .9500 .9000 .6250 .6250 .6250;.6750 .6250 .6750 .7875 .8500 .787];
 H2=[.75 .75 .75 .50 .75 .25;.95 .75 .75 .75 .25 .25;.25 .95 .95 .75 .50 .50;.50 .50 .95 .75 .95 .95];
syms s k;

for i=1:4
    for j=1:6

        S1 = symsum(H2(i,j)*avg(i,j), k, 0, 6);
        S2 = sqrt(symsum(H2(i,j)^2, k, 0, 6));
        S3 = sqrt(symsum(avg(i,j)^2, k, 0, 6));
        S= symsum((S1/S2*S3),k,0,4)
        %S=sum(S1/S2*S3);
    end
end

我假设h1h2h3h4是四个hs矩阵,h*是平均矩阵,并且我尝试编写此代码

0 个答案:

没有答案