フィルターのクリア

Missing inputs to distance function

1 回表示 (過去 30 日間)
Keir Hunter
Keir Hunter 2020 年 6 月 16 日
回答済み: Rafael Hernandez-Walls 2020 年 6 月 16 日
I am using the sunang function from the SunPosition package that I got from the file exchange. It uses the distance function but is raising an error that there are missing inputs even though it seems that it has all the inputs neccessary.
[declin, radiusvector, solar_lon, varargout] = EarthEphemeris(times);
[mu0,solarAzm] = sunang(observer.lat, observer.lon, declin, solar_lon);
Check for missing argument or incorrect argument data type in call to function 'distance'.
Error in sunang (line 69)
[arclen, phi0] = distance(lat, lon, declin, omega);
Error in is_event_observable_test (line 40)
[mu0,solarAzm] = sunang(observer.lat, observer.lon, declin, solar_lon);
Error in ogre_launch_window (line 35)
bool_array = is_event_observable_test(constraints, observer, targ, time_array, 280.6616010);
The observer is just an object I created to hold the values of the longitude and latitude of the observer. Any help would be great.
Thanks,
Keir
  3 件のコメント
Keir Hunter
Keir Hunter 2020 年 6 月 16 日
I have not but I will try that.
Keir Hunter
Keir Hunter 2020 年 6 月 16 日
That is a different package. I have linked the package I used here:

サインインしてコメントする。

回答 (1 件)

Rafael Hernandez-Walls
Rafael Hernandez-Walls 2020 年 6 月 16 日
First you need to put you trajectory of the directory, in my case I put this
path(path,['/Users/rafaelhernandezwalls/Downloads/SunPosition 2'])
% and then run the example
SunPositionNow

カテゴリ

Help Center および File ExchangeDirection of Arrival Estimation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by