From 79d02dda23a290ec6c052f11c9db51aafc7b906a Mon Sep 17 00:00:00 2001 From: "Faiza Bibi (bibif5)" Date: Mon, 3 Aug 2020 00:12:40 +0100 Subject: [PATCH] Version6.2 Added on pause command to make it iterate through the hours --- 6thVersion.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/6thVersion.m b/6thVersion.m index df54fdb..1bd51bd 100644 --- a/6thVersion.m +++ b/6thVersion.m @@ -1,3 +1,7 @@ +clear all +close all +clc + %Reading the .nc file FileNC = 'o3_surface_20180701000000.nc' ; @@ -75,6 +79,7 @@ if (option == 'a' || option == 'A') % this figure will display if a is selected colormap default; % Normal vision mode colorbar % Displaying colour bar title(sprintf("Standard View: Hour " + i + "\n" )); % title (displays hour and the type of view) + pause(0.1); % time for each hour - pauses for 1 second end % Monochromacy: Ozone Overlay @@ -88,4 +93,3 @@ else disp('Sorry that is not an option from above! Please run the program again') end -