How to quickly view the variables in the mat file? My computer is poor, so it is slow to open matlab😭

5 ビュー (過去 30 日間)
Because my computer is poor, every time I open matlab, it takes a long time to initialize before I can write code normally. Many times, I need to look mat data files when writing deep learning programs, such as using scipy and tensorlfow. If I need to wait a long time to open the whole matlab just to view one mat file, which makes me feel very frustrated.😭
Therefore, I want to know if there are other softwares or methods that can quickly view the contents of mat files?
  3 件のコメント
Sure
Sure 2023 年 2 月 3 日
Thank you for your answer. I think your answer is very valuable. But is there any other way?
Stephen23
Stephen23 2023 年 2 月 3 日
編集済み: Stephen23 2023 年 2 月 3 日
" I want to know if there are other softwares or methods that can quickly view the contents of mat files?"
Note that you can always specify which variables you want to import: see the LOAD() documentation. From within MATLAB you can use WHOS() to see what variables the MAT file contains:
or MATFILE() refer to the variables, without loading (all of) the data into memory:
Some other applications that natively work with MAT files and have similar functionality:

サインインしてコメントする。

回答 (2 件)

dpb
dpb 2023 年 2 月 4 日
編集済み: dpb 2023 年 2 月 4 日
Just leave a MATLAB session open, don't close it if you have such use/need frequently.
Or, if the content of these .mat files is at least relatively static; echo
whos -file matfilename
to a text file to refer to at will...

Walter Roberson
Walter Roberson 2023 年 2 月 4 日
https://comp.soft-sys.matlab.narkive.com/hkUdFzb0/quickly-list-variables-in-a-mat-file shows some C code that when compiled with the MATLAB API, should be able to list the names of variables in a .mat file

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by