Read matlab file in Julia
00 min
Feb 3, 2023
Aug 15, 2024
slug
tags
password
icon
lang
date
category
type
status
summary
{/* truncate */}

Convert Matlab file to Julia

In this situation, you should use MAT.jl package to introduce Matlab variables into the Julia system.

Preparation

Transfer table or dataset to cell, but it will cost extremely large storage and time. I think a double array is a better choice, and you can save the column names as a cell for convenience.

Import the variable

In Julia, I use MAT.jl to read .mat files and DataFrames.jl to create dataframe tables.

Construct dataframe

One-line import

Or you can construct the data frame with one line code

Comments
  • Twikoo
  • Giscus