overloading x=[a b; c d]

조회 수: 4 (최근 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 CenterFile Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by