mat2csv
Version 0.1.0 (2.94 KB) by
Joshua Bauske
A MATLAB function for converting .mat files to .csv files
mat2csv
A MATLAB function for converting .mat files to .csv files.
Description:
This function reads data from a filename.mat file, converts the data to one cell array and writes the cell array to a filename.csv file within same directory. If filename.csv exists it will be overwritten, otherwise a new filename.csv file will be created.
Usage Example:
mat2csv("/home/user/data/measurement01.mat");
Notes:
- Data fields within .mat file need to be vector shaped.
- Can handle mixed types of data within the .mat file due to cell conversion.
- Cell conversion and writing cell arrays takes time, especially for large files! There might be faster solutions - e.g. if the .mat file only contains numerical data.
Cite As
Joshua Bauske (2024). mat2csv (https://github.com/TheHotChilli/mat2csv/releases/tag/0.1.0), GitHub. Retrieved .
MATLAB Release Compatibility
Created with
R2022a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
0.1.0 |
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.