Filter löschen
Filter löschen

Matrix compare and unkonw relationships to find

1 Ansicht (letzte 30 Tage)
Zuyu An
Zuyu An am 3 Aug. 2020
Kommentiert: Zuyu An am 19 Aug. 2020
I have 2 Matrix, for example
Matrix A ={a1 b1 c1; a2 b2 c2; a3 b3 c3}
Matrix B={x1 y1 z1 m1 n1; x2 y2 z2 m2 n2; x3 y3 z3 m3 n3 }
a1 b1 c1 is the result from FEM-Simulation-1, and x1 y1 z1 m1 n1 is the Geometrie-parameter from Simulation-Objekt-1
a2 b2 c2; x2 y2 z2 m2 n2 and the other number in Matrix means the same thing from Simulation-2 and -3.
there must some relationships zwischen Matrix A and B, linear or unlinear, but i don't yet.
How kann i use Matlab this unkonw relationships to find?
Or is it possible to use Matlab this unkonw relationships to find?
which function should i use?
Thankyou very very much for your time!

Akzeptierte Antwort

Sourabh Kondapaka
Sourabh Kondapaka am 6 Aug. 2020
Hi,
You can use corr() function to find the relationship between columns of 2 matrices. Here, as you want to find the correlation between rows, you can transpose both the matrices.
Consider two random matrices of sizes 3x3 and 3x5 respectively
matrix_A = rand(3,3);
matrix_B = rand(3,5);
correlationMatrix = corr(matrix_A', matrix_B' );
  3 Kommentare
Sourabh Kondapaka
Sourabh Kondapaka am 10 Aug. 2020
Hi,
corr(matrix_A, matrix_B) function returns a matrix of the pairwise linear or rank correlation coefficient between each pair of columns in the input matrices matrix_A and matrix_B.
You can check for different types of correlation functions for the "corr()" function here.
Zuyu An
Zuyu An am 19 Aug. 2020
thankyou very much, it is helpful!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Bruno Luong
Bruno Luong am 7 Aug. 2020
Bearbeitet: Bruno Luong am 7 Aug. 2020
Use regression methods. If you have a linear/affine model, then use linear algebra. If you have "kind" non-linear, use polynomial, spline, fraction, nurbs regressions, if you have no clue on non-linearity but know the relationship is continuous/C1 relationship use learning technique, neuronal netwroks, deeplearning etc... If you have discontinuous non-linearity (hash code, encryption), you might be in big trouble or wait until a real quatum computer available...
  1 Kommentar
Zuyu An
Zuyu An am 7 Aug. 2020
first of all, thankyou very much for your time.
i think it is non-linearity but continuous, how kann i use learning technique, neuronal netwroks, deeplearning ? how does it work on Matlab?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by