필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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

조회 수: 1 (최근 30일)
Sultan Mehmood
Sultan Mehmood 2019년 6월 30일
마감: MATLAB Answer Bot 2021년 8월 20일
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