class_docstr: A printer to convert expressions to strings of Octave/Matlab code.
class_docstr_tok: ["A","printer","to","convert","expressions","to","strings","of","Octave\/Matlab","code","."]
code: def _print_MatrixBase(self, A):
      # Handle zero dimensions:
      if (A.rows, A.cols) == (0, 0):
          return "[]"
      elif S.Zero in A.shape:
          return "zeros(%s, %s)" % (A.rows, A.cols)
      elif (A.rows, A.cols) == (1, 1):
          # Octave does not distinguish between scalars and 1x1 matrices
          return self._print(A[0, 0])
      return "[%s]" % "; ".join(
          " ".join([self._print(a) for a in A[r, :]])
          for r in range(A.rows)
      )
  
imports: from __future__ import annotations
  from typing import Any
  from sympy.core import Mul, Pow, S, Rational
  from sympy.core.mul import _keep_coeff
  from sympy.core.numbers import equal_valued
  from sympy.printing.codeprinter import CodePrinter
  from sympy.printing.precedence import precedence, PRECEDENCE
  from re import search
label_desc: Use image node_id 26 for calling the OctaveCodePrinter obj's underlying member method code with example usage: obj._print_MatrixBase(A) and returns: unknown, str, unknown, self