overloading x=[a b; c d]

4 visualizaciones (últimos 30 días)
Federico
Federico el 8 de Feb. de 2012
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]?

Respuestas (1)

Sean de Wolski
Sean de Wolski el 8 de Feb. de 2012
I would think that if horzcat and vertcat are properly overloaded that would work as is?

Categorías

Más información sobre Operating on Diagonal Matrices en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by