firts attempt at matlab write gdf