---
title: mtx_-
description: matrix subtraction
categories:
- object
pdcategory: Element Math
aliases:
- mtx_sub
see_also:
- matrix
- mtx_+
- mtx_.*
- mtx_./
- mtx_.^
- mtx_*
inlets:
  1st:
  - type: matrix
    description: left-hand operand
  2nd:
  - type: matrix
    description: right-hand operand
  - type: float
    description: right-hand operand
outlets:
  1st:
  - type: matrix
    description: result
---


$$C_{m\times n} = A_{m\times n} - B_{m\times n} \quad \equiv \quad c_{ij} = a_{ij} - b_{ij} $$

$$C_{m\times n} = A_{m\times n} - b \quad \equiv \quad c_{ij} = a_{ij} - b $$
