Adding symbolic matrices along 3rd dimension
显示 更早的评论
Hi,
I have a symbolic 3-by-3-by-3 matrix as:
Q(:,:,1) =
[ a, b, c]
[ d, e, f]
[ g, h, i]
Q(:,:,2) =
[ a, d, g]
[ b, e, h]
[ c, f, i]
I added by sum command and I need to do it along 3rd dimension; so I did:
W = sum(Q,3)
But it returns me the error:
Error using mupadmex
Error in MuPAD command: Unable to define matrix over Dom::ExpressionField().
[(Dom::Matrix(Dom::ExpressionField()))::new]
Error in sym/privUnaryOp (line 1700)
Csym = mupadmex(op,args{1}.s,varargin{:});
Error in sym/sum (line 502)
s = privUnaryOp(A, 'symobj::prodsumdim', num2str(dim), '_plus');
I tried it with numeric matrices and it works. How Can I do it with symbolic matrices ?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!