Statistical comparison between matrices

2 visualizaciones (últimos 30 días)
Arup B
Arup B el 12 de Ag. de 2021
Comentada: Sambit Supriya Dash el 17 de Ag. de 2021
I have a 32x30x24 velocity field matrix. I have calculated first five mode for each of the 24 - 32x30 matrix using SVD.
Now, I need to statistically compare every mode (compare between 24 first modes, 24 second modes, and so on). How do I go about this?
Thank you!

Respuesta aceptada

Sambit Supriya Dash
Sambit Supriya Dash el 15 de Ag. de 2021
Editada: Sambit Supriya Dash el 15 de Ag. de 2021
After converting all the 24 matrices of 32x30 into 24 vectors of 960 elements each, take each vector of 960 elements and sort them.
Suppose,
A = matrix of 32x30x24
for i = 1:24
EA = A(:,:,i);
v1 = EA(:); v2 = reshape(EA,1,[]); v3 = reshape(EA,numel(EA),1); % Convert 2D mat. to vector
u = unique(v3);
n = histc(v3,u);
[n,idx] = sort(n);
freqn = v3(idx); % Most frequenting nos.
myNos(i) = freqn;
end
I am not sure, this would help or not, but surely the logic here will work to find the desired modes from the tensor (3D matrix), stored in myNos.
You may able to compare each no.
  2 comentarios
Arup B
Arup B el 17 de Ag. de 2021
Editada: Arup B el 17 de Ag. de 2021
Hi Sambit,
I did something similar - concveterd the 3D matrix into 2D, and ran ANOVA on on locations on the timesteps blocks based . Thank you so much for the idea.
Sambit Supriya Dash
Sambit Supriya Dash el 17 de Ag. de 2021
That's great, glad!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Linear Algebra en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by