Too many output arguments
2 次查看(过去 30 天)
显示 更早的评论
Hi, I am writing a matlab code to analyze GNSS satellite track using Rinex data. However, it comes up with error where there are too many arguments. The code is basically coming from the skyplot manual from matlab and it should be fine theoretically. How can I fix this problem in line 553? Thanks.
recPos = [0 0 0];
maskAngle = 10;
filename = "hkkt020e.24n";
data = rinexread(filename);
data.GPS(1:4,:) % Just used for understanding rine file content, basically caln ignore it
[~,satIdx] = unique(data.GPS.SatelliteID);
navmsg = data.GPS(satIdx,:);
startTime = navmsg.Time(1);
secondsPerHour = 3600;
dt = 60; % seconds
numHours = 1;
timeElapsed = 0:dt:(secondsPerHour*numHours);
t = startTime + seconds(timeElapsed);
numSats = numel(navmsg.SatelliteID);
allAz = NaN(numel(t),numSats);
allEl = allAz;
for idx = 1:numel(t)
[satPos,~,satID] = gnssconstellation(t(idx),RINEXData=navmsg);
[az,el,vis] = lookangles(recPos,satPos,maskAngle);
allAz(idx,:) = az;
allEl(idx,:) = el;
end
allEl(allEl < 0) = missing;
figure
sp = skyplot(allAz(1,:),allEl(1,:),satID,MaskElevation=maskAngle);
for idx = 1:size(allAz, 1)
set(sp,AzimuthData=allAz(1:idx,:),ElevationData=allEl(1:idx,:));
drawnow limitrate
end
6 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!