overloading x=[a b; c d]

2 ビュー (過去 30 日間)
Federico
Federico 2012 年 2 月 8 日
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
Sean de Wolski 2012 年 2 月 8 日
I would think that if horzcat and vertcat are properly overloaded that would work as is?

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by