x=[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1];
y=[0 0 0 0 0 0 1 8 0 2 4 5 3 1 0 1 5 3 2 7 7 4 0 0 0 2 7 3 0 9 0 0 2 6 1 3 3 6 2 7 2 2 6 5 2 1 0 7 7 2 7 4 2 7 4 3 6 7 8 7];
z=[0 9 7 6 6 6 3 0 3 2 4 4 2 4 9 3 3 2 6 0 1 2 8 2 9 2 2 2 3 0 9 9 8 5 8 8 9 8 9 3 9 8 8 9 7 9 9 4 7 8 8 7 8 8 6 8 4 6 2 3];
想要求熵H=(yz/x),请问有谁写过类似的代码,求指教?