diff --git a/tsgqc_GUI.m b/tsgqc_GUI.m index fe3b8c9fb09e0936bfc846041b9cc3170fe822f6..b07c97fbbfd10d40fe8a585f6e47e589120d7c9e 100644 --- a/tsgqc_GUI.m +++ b/tsgqc_GUI.m @@ -583,11 +583,11 @@ function tsgqc_GUI % use sprintf with format instead strcat & num2str but flag % - don't work with 0, eg %+07.4f set( hInfoText, 'String',... - sprintf(['%s - Latitude = %07.4f - Longitude = %08.4f '... - ' - Salinity = %07.4f - Temperature = %07.4f'],... + sprintf(['%s - Latitude = %s - Longitude = %s '... + ' - Salinity = %07.4f - Temperature = %07.4f'],... datestr(tsg.TIME(indCursor(1)),'dd/mm/yyyy HH:MM'),... - tsg.LATITUDE(indCursor(1)), ... - tsg.LONGITUDE(indCursor(1)), ... + dd2dm(tsg.LATITUDE(indCursor(1)),0), ... + dd2dm(tsg.LONGITUDE(indCursor(1)),1), ... tsg.PSAL(indCursor(1)), ... tsg.TEMP_TSG(indCursor(1))... ));