How can I apply arrayfun with 2D matrix inputs?
이전 댓글 표시
I want to accelerate the following code.
B=zeros(N,M,M);
for n=1:N
B(n,:,:)=inv(A(n,:,:));
end
where the size of A is N x M x M. Arrayfun doesn't support such a matrix input. So I would like to know the way to accelerate it.
Thank you in advance!
댓글 수: 2
Andrei Bobrov
2017년 6월 26일
편집: Andrei Bobrov
2017년 6월 26일
It is unlikely that the arrayfun will accelerate.
Daichi
2017년 6월 26일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 行列および配列에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!