overloading x=[a b; c d]
显示 更早的评论
Suppose a,b,c,d are instances of a custom Matlab class. I can redefine [a b] and [a;b] by overloading horzcat() and vertcat(); however, how do I overload a more complex concatenation operation such as [a b; c d]?
回答(1 个)
Sean de Wolski
2012-2-8
1 个投票
I would think that if horzcat and vertcat are properly overloaded that would work as is?
类别
在 帮助中心 和 File Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!