In AX = B
, if A
is 3D(n×n×i) matrix and B
is 3D(1×n×i) matrix but more like a single row in 3D, then what will be the dimension of X
? and How to solve this in matlab
?
It seems like you are describing a set of i
systems of equations with n
equations in n
unknowns for each system. A way to solve this would be
X = zeros( n, ii ); %//pre-allocate
for jj=1:ii
X(:,ii) = A(:,:,jj) \ squeeze(B(1,:,jj));
end
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.