Trouble reading data from .mat file

3 vues (au cours des 30 derniers jours)
Zarish Anwar
Zarish Anwar le 28 Nov 2019
Commenté : Geoff Hayes le 29 Nov 2019
I'm trying to read data in .mat file but data is displaying in corrupted format. Version I'm using is 2015rb.
  4 commentaires
Geoff Hayes
Geoff Hayes le 29 Nov 2019
But what do you mean by values are not showing. Is the 1.mat file invalid?

Connectez-vous pour commenter.

Réponses (1)

Luna
Luna le 28 Nov 2019
Hi,
Try this:
fid = fopen('1.mat');
values = fread(fid);
fclose(fid);
It seems only file created
'MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on: Thu Jan 01 02:47:51 2015'
The rest of data can not be seen.
  2 commentaires
Luna
Luna le 29 Nov 2019
can you share the code shows how it is saved? We should know the saving method I guess.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Workspace Variables and MAT-Files dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by