•  Back 
  •  Main 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The GFA-Basic Compendium
Author      : GFA Systemtechnik GmbH
Version     : GFABasic.HYP v2.98 (12/31/2023)
Subject     : Documentation/Programming
Nodes       : 899
Index Size  : 28056
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Document not found
@help       : Help
@options    : +g -i -s +z
@width      : 75
@hostname   : STRNGSRV
@hostname   : CAB     
@hostname   : HIGHWIRE
@hostname   : THING   
View Ref-FileMAT BASE n

n: iexp (must be 0 or 1)

The MAT BASE command can only sensibly be used when OPTION BASE 0 has been
activated. In this case, MAT BASE 1 can be used to set the offset for the start
of the row and column indexing of one or two-dimensional fields with floating
point variables to 1 for the matrix operations. MAT BASE 0 resets this offset
to 0 after a MAT BASE 1.

The setting made with MAT BASE n affects the following commands:

    MAT READ
    MAT PRINT
    MAT CPY
    MAT XCPY
    MAT ADD
    MAT SUB
    MAT MUL

Note: The default is MAT BASE 1.

Example:

    OPTION BASE 0
    MAT BASE 1
    DATA 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
    DIM a(3,3)
    MAT READ a()
    PRINT a(1,1)

--> Outputs the value 1.