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

조회 수: 2 (최근 30일)
Brendan
Brendan 2023년 10월 16일
답변: Voss 2023년 10월 16일
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