Info

此问题已关闭。 请重新打开它进行编辑或回答。

how to do this in matlab by the multiply constant matrix and the inversion matrix

1 次查看(过去 30 天)
Untit.png
x=0.3;
p=0.343;
for n=2:65536;
if x(n-1)>=0 & x(n-1)<=p
x(n)=x(n-1)/p;
else
x(n)=(1-x(n-1))/(1-p);
end
end
A=sort(x);
[A,T]=sort(x);
Q=R(T);
Q4 = reshape(Q, 4, 4, numel(Q)/16);
  4 个评论
Jan
Jan 2019-7-1
After step 1 you have a set of 4x4 matrices. Now the text of step 2 is full of syntactical errors. I'm not sure, what it means. Maybe:
Q4 = reshape(Q, 4, 4, numel(Q)/16);
R = zeros(size(Q4));
C = [2,3,1,1; 1,2,3,1; 1,1,2,3; 3,1,1,2]; % You should be able to write this!
for k = 1:size(Q4, 3)
R(:, :, k) = Q4(:, :, k) * C;
end
The part with the inversion matrix is not clear. Ask the one who has written the question.

回答(0 个)

此问题已关闭。

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by