# writeNmzData(Matrix,String) -- creates an input file for Normaliz with one matrix

## Synopsis

• Function: writeNmzData
• Usage:
writeNmzData(mat, nmzType)
• Inputs:
• , whose rows are interpreted according to the type
• , the type
• Consequences:
• an input file filename.in is written, using the last filename created

## Description

This function creates an input file for Normaliz with a single input matrix and its type. If no filename has been specified, an error occurs.

 i1 : nmzFilename="example"; -- to keep the files i2 : mat=matrix({{1,2,3},{4,5,6},{7,8,10}}) o2 = | 1 2 3 | | 4 5 6 | | 7 8 10 | 3 3 o2 : Matrix ZZ <--- ZZ i3 : writeNmzData(mat,"normalization") i4 : get ("example.in") o4 = 3 3 1 2 3 4 5 6 7 8 10 normalization i5 : rmNmzFiles();