MAT_GETVERSION(3)

✨ MAT_GETVERSION ✨

okay bestie, welcome to the Mat_GetVersion page πŸ’– this one lives in the Library Functions Manual (section 3, the library girlies section, iykyk), and honestly? it's giving "short and iconic." no notes.


🌸 NAME 🌸

Mat_GetVersion β€” returns the version of a MATLAB MAT file when you hand it a MAT file structure πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <matio.h>

enum mat_ft
Mat_GetVersion(const mat_t *matfp);

πŸ’œ DESCRIPTION πŸ’œ

so basically, the Mat_GetVersion() function returns the version of the MATLAB MAT file that's given by the MAT file structure. that's it. that's the whole job. she's a one-trick pony and she ATE ✨


πŸŽ€ RETURN VALUES πŸŽ€

the return value is one of these three, and no, you don't get a fourth, don't even ask πŸ™ˆ

  • MAT_FT_MAT4 β€” if the file is a version 4 MAT file 🌱
  • MAT_FT_MAT5 β€” if the file is a version 5 MAT file πŸ“
  • MAT_FT_MAT73 β€” if the file is an HDF5 MAT file πŸ‘‘

🌈 SEE ALSO 🌈

the friend group, fr fr 🫢


no cap, that's genuinely every single detail from the original. nothing skipped, nothing invented. slay.

mwah πŸ’‹ this one shipped from Debian, dated November 20, 2023. go forth and version-check your MAT files, bestie β€” you're the main character now πŸ‘‘

πŸ“¦ where this page comes from