Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Determinant of a second order tensor

1 visualización (últimos 30 días)
Ahmar Yanis
Ahmar Yanis el 4 de Oct. de 2022
Cerrada: John D'Errico el 3 de Nov. de 2022
A second order tensor S its inverse is S^-1. Using matlab randi function to gen a square (NxN) matrix S with components between 0 to 9 and N=3. Calculate the determinant by randomly picking one of the ith row of the matrix. Using a loop to multiply each jth element of the selected ith row by its minor i.e, the determinant of the (N-1xN-1) matrix obtained deleting the ith row and the jth column from matrix S(i,j).If i+j is odd multiply each product by -1 use matlab function mod(x,y) with x=i+y and y=2 to determine the sign of the product.Sum all product.
  3 comentarios
Ahmar Yanis
Ahmar Yanis el 4 de Oct. de 2022
S = randi([0,9],3,3)
% Random picking the row
k = randi(size(S,1));
for i =K
for j=1:size(S)
This is the part which i dont understand
#Using a loop to multiply each jth element of the selected ith row by its minor i.e, the determinant of the (N-1xN-1)
end
end
Torsten
Torsten el 4 de Oct. de 2022
If you don't understand, you should read this article:

Respuestas (0)

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by