How to count the total interruption?
1 次查看(过去 30 天)
显示 更早的评论
figure(1)
plot(a,b,'r*','Markersize',1);
xlabel('Epoch')
ylabel('PRN')
title('Satellite Visibility from Javed Receiver 1');
Hello
I have plot a signal in which i am getting some interruption. Plot is of total number of visible satellite on y-axis and total number of epoch on x-axis. So I am getting graph as attached.
4 个评论
Adam Danz
2020-4-30
The variables you're plotting are 'a' and 'b'. Check for NaN values in both using isnan().
回答(1 个)
KSSV
2020-5-1
There are no NaN's in the data. To get the breaks/ interruption you can get the successuve distances and find the ditances which are greater then the resolution.
a, b are your point arrays.
da = diff(a) ;
db = diff(b) ;
d = sqrt(da.^2+db.^2) ;
iwant = nnz(d>1) ; % I assume if the points are continuous the distance should be 1.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 CubeSat and Satellites 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!