New to GUI. I have imported and read an xlsx file into a table. The data is latitude longitude roll pitch yaw and I have an equation that calculates EL AZ given t

조회 수: 4 (최근 30일)
New to ML and GUI. I have imported and read an xlsx file into a table. The data is latitude longitude roll pitch yaw and I have an equation that calculates EL AZ given two different longitudes and one latitude (respective to one of the longitudes). I don't know how to use the lat lon data from the table (form the imported xlsx file) and incorporate it into that equation over a time step outputing the results.
I'm sure this is not a well stated question and I apologize but I will happily accept any assistance.
This is what I have ::
CODE TO CREATE TABLE:
fileName='LLRPYT.xlsx';
xlsread(fileName);
t=readtable("LLRPYT.xlsx");
vars=["Lat","Lon","Roll","Pitch","Yaw","Time"];
t=t(1:61,vars);
fig=uifigure;
uit=uitable(fig,"Data",t,"Position",[100 100 850 800]);
%%CODE to hopefully take the data from that table and run it through this
%%equation over a time step and output AZ EL
%This is the equation, where lons is longitude of a hypothetical satellite
%and lonv is that of a vehicle, lats is latitude of satellite
atand((tand(lons-lonv))/(sind(lats)))

답변 (1개)

Walter Roberson
Walter Roberson 2023년 8월 21일
atand((tand(t.Lon-lonv))./(sind(t.Lat)))
possibly?

카테고리

Help CenterFile Exchange에서 Birthdays에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by