フィルターのクリア

IS there an alternative way to store data in matlab other than .mat?

15 ビュー (過去 30 日間)
Elias Unk
Elias Unk 2017 年 6 月 21 日
編集済み: Elias Unk 2017 年 6 月 22 日
The kind of data i'll be saving is a type double matrix of around 120 lines and columns and prefferrably i'll need to fill each line seperately using a loop i already wrote.
  12 件のコメント
Stephen23
Stephen23 2017 年 6 月 22 日
"what's the correct way to access it and check the values inside it?"
Errr... by using MATLAB, and not Microsoft Access? I know some Microsoft users love double-clicking everything in sight, but did you consider simply using MATLAB to read that file?
S = load(filename)
After all, this is what the MATLAB documentation describes:
Elias Unk
Elias Unk 2017 年 6 月 22 日
編集済み: Elias Unk 2017 年 6 月 22 日
Stephen,if you read bellow before dropping this comment you'd realize that
load(filename)
by itself wasn't enough then Jan guided through the last commend,Regards.

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

採用された回答

Jan
Jan 2017 年 6 月 21 日
編集済み: Jan 2017 年 6 月 21 日
Open MAT files by the Matlab:
FileData = load('File.mat')
Or use the https://de.mathworks.com/help/matlab/ref/matfile.html matfile command.
I never needed to open a MAT file by a double click, but if MS Office was installed after Matlab, the .mat extensions is associated to MS Access. There are several methods to associate it with Matlab again, simply ask your favorite internet search engine for these terms.
  4 件のコメント
Jan
Jan 2017 年 6 月 21 日
Matlab is not Excel, fortunately. But you can open the variable in Matlab's ArrayEditor:
openvar(FileData.B)
Elias Unk
Elias Unk 2017 年 6 月 21 日
Thanks walter and Jan,and worked beautifully Jan.

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

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 6 月 21 日
MATLAB supports the following:
  • arbitrary binary files, using fread() and fwrite()
  • structured binary files, using memmapfile()
  • binary .mat files, using save(), which supports all MATLAB data types
  • rectangular blocks of plain text, using save -ASCII, which supports numeric scalars and vectors and 2D arrays only
  • .csv for numeric values, using csvwrite(); characters are not supported
  • text files for numeric values with arbitrary delimiter between fields, using dlmwrite(); characters are not supported
  • .csv and .xls for numeric values, using xlswrite(); on systems that are not MS Windows or which do not have Microsoft Excel installed, characters are not supported
  • .xlsx for mixed values, using xlswrite(), including on systems that are not MS Windows or which do not have Microsoft Excel installed; full support for this started in roughly 2012
  • HDF4 files (read-only), and HDF5 files (read and write), using hdf*() and h5*() functions
  • NETCDF files
  • general xml documents
  • standard ODBC-compliant and JDBC-compliant databases, including Oracle®, SAS®, MySQL®, Sybase®, Microsoft® SQL Server®, Microsoft® Access™, and PostgreSQL®, using the Database Toolbox
As well as a number of other more specialized formats.

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by