Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed the syntax to correspond to octave (the 'handle' stuff isn't fu…

…lly supported)
  • Loading branch information...
commit ac9a35d06c1b8742b7f1762c41e0c695c776118a 1 parent 0ff1aa5
@kristianpaul authored
Showing with 14 additions and 6 deletions.
  1. +14 −6 plotAcquisition.m
View
20 plotAcquisition.m
@@ -36,11 +36,16 @@ function plotAcquisition(acqResults)
%% Plot all results =======================================================
figure(101);
-hAxes = newplot();
+%hAxes = newplot();
+newplot();
+hAxes=gca();
-bar(hAxes, acqResults.peakMetric);
+%bar(hAxes, acqResults.peakMetric);
+bar(acqResults.peakMetric);
-title (hAxes, 'Acquisition results');
+
+%title (hAxes, 'Acquisition results');
+title ('Acquisition results');
xlabel(hAxes, 'PRN number (no bar - SV is not in the acquisition list)');
ylabel(hAxes, 'Acquisition Metric');
@@ -53,8 +58,11 @@ function plotAcquisition(acqResults)
acquiredSignals = acqResults.peakMetric .* (acqResults.carrFreq > 0);
-hold(hAxes, 'on');
-bar (hAxes, acquiredSignals, 'FaceColor', [0 0.8 0]);
-hold(hAxes, 'off');
+%hold(hAxes, 'on');
+%bar (hAxes, acquiredSignals, 'FaceColor', [0 0.8 0]);
+%hold(hAxes, 'off');
+hold('on');
+bar ( acquiredSignals, 'FaceColor', [0 0.8 0]);
+hold('off');
legend(hAxes, 'Not acquired signals', 'Acquired signals');
Please sign in to comment.
Something went wrong with that request. Please try again.