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)))
댓글 수: 0
답변 (1개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

