how to find relationship between two or more matrix

I have this code :
function [idx,x] = chaoticInterleaver(N)
assert(mod(N,8)==0,'N must be divisible by 8.')
idx = zeros(N);
x = N * (0:N-1).' + (1:N); % from Jan
% Lower part
idx(N-7:2:end-1, :) = frf(x(1:N/2, 1:8), N);
idx(N-6:2:end,:) = frf(x(N/2+1:end,1:8), N);
if N >= 16
for ii = 1:4 % Upper part
idx(ii:4:N-8,:) = frf( x(N/4*(ii-1)+1:N/4*ii, 9:end), N);
end
end
end
function out = frf(partX,N)
% flipud, reshape with N rows, and then flip again (hence the name frf).
out = flipud(reshape(flipud(partX),N,[]).');
end
the output of this code is : [Chaotic_Interleaver_index, Address] = chaoticInterleaver(8) % you can use inputs 8, 16, 24, etc as required
the output ia a matrix of 8*8 or 16*16 or 24*24 (According to the number entered in parentheses above)
the problem is how to do relationship between the output of 24*24 and 8*8 , 24*24 and 16*16 within its limits
This file shows what I mean

9 Comments

The dimensions of the matrices and the range of numbers in the matrices are different. What kind of relation you expect?
@KSSV i mean by realation is mathmatical correlation . the numbers or the matrices is the output of the above code in the question . It consists of three square matrices (8 * 8, 16 * 16, and 24 * 24). A 24 * 24 matrix has the terms 8 * 8 and 16 * 16 inside, and also there are exits of the 8 * 8 and 16 * 16 are within 24 * 24. That's why I need a mathematical relationship that combines the 8 * 8 and 24 * 24 matrix. And another relationship between 16*16 and 24*24
What is the mathematical relationship between [1 2 3 4 5 6 7] and [5 2 1 3 7 4 6] ?
Mathematically there is a relationship, one that could be expressed in terms of permutation groups... but is that a useful thing to express?
@Walter Roberson the relation between the matrices in the files above
What kind of output are you hoping for? Give us an example of what the output could look like.
I am don't have any idea about the shape of the output but iam know I need a two mathematical relation in the output of the code above in the question and the files in the question describe the output of the code how look like.first realation: I need to do the relation between 8*8 and 24*24 matrix in the boundary of 8*8 in the same or similar numbers with ignore the address of it . Second relation between 16*16 and 24*24 matrix in the boundary of 16*16 to find the similar numbers and do between them a correlation
Please help me if you have any idea
@Walter Roberson @KSSV i am add another question in my profile which describe the same problem can you help me to solve it

Sign in to comment.

Answers (0)

Asked:

on 5 Jan 2022

Commented:

on 8 Jan 2022

Community Treasure Hunt

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

Start Hunting!