Inverse of 3D array with zeros

1 visualización (últimos 30 días)
Burak
Burak el 30 de Mzo. de 2017
Comentada: Walter Roberson el 31 de Mzo. de 2017
Hi everyone , I need to calculate inverse of A(v,n,m+N+1) for 3rd dimension , I mean array B, but there are zeros here and I can't calculate inverse for all m because matrix is singular.Here is the code;
for m=-N:N
if m==0
k=1;
else
k=abs(m);
end
for v=k:N
for n=k:N
A(v,n,m+N+1)=(v+n)*m;
end
end
end
for i=1:2*N+1
B(:,:,i)=inv(A(:,:,i);
end
I need help, If anyone can help me , appreciated. Thanks for your concern.
  1 comentario
Walter Roberson
Walter Roberson el 31 de Mzo. de 2017
What output are you hoping for in the situation where the array is singular?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by