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
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에 대해 자세히 알아보기

제품

질문:

2012년 2월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by