필터 지우기
필터 지우기

Inverse of 3D array with zeros

조회 수: 1 (최근 30일)
Burak
Burak 2017년 3월 30일
댓글: Walter Roberson 2017년 3월 31일
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
Walter Roberson
Walter Roberson 2017년 3월 31일
What output are you hoping for in the situation where the array is singular?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by