Permalink
Browse files

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

…lly supported)
  • Loading branch information...
1 parent 0ff1aa5 commit ac9a35d06c1b8742b7f1762c41e0c695c776118a @kristianpaul committed Jun 27, 2011
Showing with 14 additions and 6 deletions.
  1. +14 −6 plotAcquisition.m
View
@@ -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');

0 comments on commit ac9a35d

Please sign in to comment.