---
name: "Mat_VarPrint"
section: "3"
platform: "linux"
package: "libmatio"
version: "1.5.30-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Mat_VarPrint"
---

# Mat\_VarPrint(3)

Prints the information of a MAT variable to stdout.

## NAME

**Mat\_VarPrint** – Prints the information of a MAT variable to stdout.

## SYNOPSIS

**#include \<matio.h\>**

*void*\

**Mat\_VarPrint**(*const matvar\_t \*matvar*, *int printdata*);

## DESCRIPTION

The **Mat\_VarPrint**() function prints the information of a MAT variable *matvar* to stdout. If *printdata* is set to non-zero the data of the variable also is printed.
