Same elements in cells on diag of a matrix
1 次查看(过去 30 天)
显示 更早的评论
Hello there,
I'm using syms and I have several polynoms in each of my mtrix cells,
I want to find out what are the common elements on the polynoms that on the diagonal of the matrix.
For example, the following 2x2 matrix:
A=[
1+w+w^2, 2w+3;
3w+5, 1-w+w^2;
]
I want to get the following polinom: 1+w^2.
In future steps I'll use cos and sin so please consider it.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!