%% Read Weather Data
% This example shows how to read temperatures from a csv data file.
%% Read Data From CSV File

httpsUrl = "https://requestserver.mathworks.com";
dataUrl = strcat(httpsUrl, "/assets/weatherStation.csv");
data = webread(dataUrl);
time = [data.Time];
temp = [data.TempF];

%
%% Display Temperature Plot

plot(time, temp)
xlabel("Time")
ylabel("Temperature (Farenheit)")
title("Temperature Over Time");
axis padded

% Copyright 2020 The MathWorks, Inc.