How to calculate inverse of 3d array matrices with size 3*3*18 ?

15 ビュー (過去 30 日間)
M
M 2022 年 5 月 17 日
回答済み: Steven Lord 2022 年 5 月 17 日
How to calculate inverse of 3d array matrices with size 3*3*18 ?

採用された回答

KSSV
KSSV 2022 年 5 月 17 日
A = rand(3,3,18) ;
[m,n,p] = size(A) ;
B = zeros(m,n,p) ;
for i = 1:p
B(:,:,i) = inv(A(:,:,i)) ;
end

その他の回答 (1 件)

Steven Lord
Steven Lord 2022 年 5 月 17 日
If you're using release R2022a or later you could use the pageinv function. But if you're planning to invert these matrices in order to multiply them by something else to solve a system of equations, I would advise you to use pagemldivide (also release R2022a) instead of using both pageinv and pagemtimes (release R2020b.)

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by