pagemrdivide
Right division page by page, A / B for each page.
Category: Language Fundamentals > Operators and Elementary Operations
Syntax
X = pagemrdivide(A, B)
For each page, solves X(:,:,k) * B(:,:,k) = A(:,:,k).
Description
It is the page-wise version of the / operator: each page of A is divided on the right by the matching page of B. A size-1 page dimension is reused for all pages.
The operation is the transpose of the left-division problem, X = (B' \ A')', applied to every page.
Input arguments
A- Array of right-hand side pages, each
m-by-n. B- Array of coefficient pages, each
p-by-n.
Output arguments
X- Solutions, each page
m-by-p.
Example
B = cat(3, [2 0; 0 2], [1 0; 0 4]);
A = cat(3, [2 2], [4 4]);
X = pagemrdivide(A, B);
X(:, :, 1)
X(:, :, 2)
Output
ans = 1×2
1 1
ans = 1×2
4 1