Wiris

Documentation / CalcMe

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • Nubric

        • CalcMe

          • MathPlayer

            • Store FAQ

              • MathFlow

                • BF FAQ

                  • Miscellaneous

                    • Wiris Integrations

                      • Home
                      • CalcMe
                      • Commands
                      • Programming Functions

                      Erase

                      Reading time: 1min

                      Nota

                      Working with polygons? See Erase (Geometry).

                      Erases an element of a list or vector.

                      Syntax

                      erase(List | Vector, Integer | List | Vector | Range)
                      
                      erase(Matrix, Integer | List | Vector | Range)
                      

                      Description

                      Given a list or vector L, and integers or sets of integers i1,...,in, erase the elements in L at positions i1,...,in.

                      calc.erase1.calc.png

                      Given a matrix M, and two sets sets of integers i1,...,in and j1,...,jr, erase rows i1,...,in and columns j1,...,jr.

                      calc.erase2.calc.png

                      Was this article helpful?

                      Give feedback about this article

                      Erase

                      Nota Syntax Description

                      Empowering STEM education

                      MathType

                      • Office Tools
                      • LMS
                      • XML
                      • HTML

                      WirisQuizzes

                      Nubric

                      Integrations

                      Solutions

                      • Education
                      • Publishing houses – platforms and interactive
                      • Publishing houses – Print and digital
                      • Technical writers

                      Pricing

                      Downloads

                      Blog

                      • Success stories

                      About us

                      • Careers
                      • Partnership

                      Contact Us

                      Contact Sales

                      European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Cookie Settings

                      © Wiris 2026

                      Expand