How to create a .mat file
31 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Thomas
el 22 de Jul. de 2019
Comentada: V Prakash
el 6 de Nov. de 2020
Hello,
I've been searching for clues in order to solve my problem but couldn't find anything and since I just start with Matlab, I'm a bit lost.
Here's the thing :
I need to create a .mat file which would contain the following arrays :
- lattitude (1-10980)
- longitude (ID)
- time (43 dates)
- the data (10980,10980,43)
The data are Sentinel 2 images (.tif) that I would like to stack in order to conduct Time Series analyses.
The script I've been provided with is EOF, and the data they use in their example are organised as previously (only, with less data).
Since I'm not familiar with .mat files, I think I only understood that they are organised like .nc or .hdf files (might not be though).
Anyway, even if they are, I clearly can't tell how to end up with my arrays organised like that.
Could somebody help ?
Thank you.
2 comentarios
Respuesta aceptada
Stephen23
el 22 de Jul. de 2019
Editada: Stephen23
el 22 de Jul. de 2019
"How to create a .mat file"
"I need to create a .mat file which would contain the following arrays..."
That is easy using save:
lat = [...]
lon = [...]
time = [...]
data = [...]
save('myFile.mat','lat','lon','time','data')
2 comentarios
V Prakash
el 6 de Nov. de 2020
Thank Thomas and Stephen for your answers. I think it will helpful for small data. How could it work for large dataset with more parameters? Is there any command to work with large dataset? Comment if any.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!