I'm trying to graph data from an html file and I'm unsure how to load and graph it.

2 次查看(过去 30 天)
im trying to graph time on the x axis and rise rate on the y
meaning (current alt-start alt)/(current time-start time)

回答(1 个)

Voss
Voss 2023-10-16
url = "https://coyote.eece.maine.edu/ece101/hw/umhab-137-iridium.html";
T = readtable(url);
head(T)
IMEI Time-UTC Date Latitude Longitude Alt-m Alt-ft V_Vel-m/s V_Vel-ft/s __________ ________ ___________ ________ _________ _______ _______ _________ __________ 3.0053e+14 17:36:23 14-Oct-2023 40.734 -116.81 "2,037" "6,683" 0 0 3.0053e+14 17:36:23 14-Oct-2023 40.734 -116.81 "2,037" "6,683" 0 0 3.0053e+14 17:36:13 14-Oct-2023 40.734 -116.81 "2,037" "6,683" 0 0 3.0053e+14 17:36:13 14-Oct-2023 40.734 -116.81 "2,037" "6,683" 0 0 3.0053e+14 17:36:05 14-Oct-2023 40.734 -116.81 "2,038" "6,685" 0 0 3.0053e+14 17:36:05 14-Oct-2023 40.734 -116.81 "2,038" "6,685" 0 0 3.0053e+14 17:35:57 14-Oct-2023 40.734 -116.81 "2,038" "6,685" 0 0 3.0053e+14 17:35:57 14-Oct-2023 40.734 -116.81 "2,038" "6,685" 0 0
tail(T)
IMEI Time-UTC Date Latitude Longitude Alt-m Alt-ft V_Vel-m/s V_Vel-ft/s __________ ________ ___________ ________ _________ _______ _______ _________ __________ 3.0053e+14 05:34:58 14-Oct-2023 40.969 -117.74 "1,307" "4,289" 0 1 3.0053e+14 05:34:58 14-Oct-2023 40.969 -117.74 "1,307" "4,289" 0 1 3.0053e+14 05:34:27 14-Oct-2023 40.969 -117.74 "1,301" "4,267" 0 -2 3.0053e+14 05:34:27 14-Oct-2023 40.969 -117.74 "1,301" "4,267" 0 -2 3.0053e+14 05:32:11 14-Oct-2023 40.969 -117.74 "1,308" "4,290" 0 0 3.0053e+14 05:32:11 14-Oct-2023 40.969 -117.74 "1,308" "4,290" 0 0 3.0053e+14 05:31:46 14-Oct-2023 40.969 -117.74 "1,312" "4,304" 0 0 3.0053e+14 05:31:46 14-Oct-2023 40.969 -117.74 "1,312" "4,304" 0 0
alt = str2double(T.("Alt-m"));
time = T.("Time-UTC");
rise_rate = (alt-alt(end))./seconds(time-time(end)); % m/s
plot(time,rise_rate)

类别

Help CenterFile Exchange 中查找有关 Data Exploration 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by