Trouble reading data from .mat file

9 visualizaciones (últimos 30 días)
Zarish Anwar
Zarish Anwar el 28 de Nov. de 2019
Comentada: Geoff Hayes el 29 de Nov. de 2019
I'm trying to read data in .mat file but data is displaying in corrupted format. Version I'm using is 2015rb.
  4 comentarios
Zarish Anwar
Zarish Anwar el 28 de Nov. de 2019
@Geoff Hayes
i'm computing sift descriptor values over my dataset. The code works fine and .mat file is being created for each image but values are not showing I'm getting this file as output
Geoff Hayes
Geoff Hayes el 29 de Nov. de 2019
But what do you mean by values are not showing. Is the 1.mat file invalid?

Iniciar sesión para comentar.

Respuestas (1)

Luna
Luna el 28 de Nov. de 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 comentarios
Zarish Anwar
Zarish Anwar el 28 de Nov. de 2019
@Luna
I'm able to read the data, my 1st coloumn is providing me values. But I have a large dataset and for each img a seperate mat file have to be created. And have to be save in a directory,
But problem is whenever I save file it is not showing data/values.
Luna
Luna el 29 de Nov. de 2019
can you share the code shows how it is saved? We should know the saving method I guess.

Iniciar sesión para comentar.

Categorías

Más información sobre Modeling and Prediction en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by