# HG changeset patch # User Jacob Dawid # Date 1316978918 -7200 # Node ID ee7f4294d1621c5dac5e1ed2ee4cdac2e34633fa # Parent 3a2b09503fed32339c684fabf234e173379b8e4d Variables view now showing matrix size. diff --git a/gui/src/backend/OctaveLink.cpp b/gui/src/backend/OctaveLink.cpp --- a/gui/src/backend/OctaveLink.cpp +++ b/gui/src/backend/OctaveLink.cpp @@ -70,15 +70,17 @@ } else if (octaveValue.is_real_matrix ()) { - // TODO: Convert real matrix into a string. - return QString ("{matrix}"); + return QString ("%1x%2 matrix") + .arg (octaveValue.matrix_value ().rows ()) + .arg (octaveValue.matrix_value ().cols ()); // Convert complex matrix. } else if (octaveValue.is_complex_matrix ()) { - // TODO: Convert complex matrix into a string. - return QString ("{complex matrix}"); + return QString ("%1x%2 complex matrix") + .arg (octaveValue.matrix_value ().rows ()) + .arg (octaveValue.matrix_value ().cols ()); // If everything else does not fit, we could not recognize the type. }