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. ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/289103/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/289103/image.jpeg)
댓글 수: 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!