Commit d6df4817 authored by Simone Liuzzo's avatar Simone Liuzzo

do not plot if last_measured_orbit is empty

parent 4f486ef6
......@@ -11,10 +11,13 @@ parse(p,obj,varargin{:});
if p.Results.figure
figure;
end
plot(obj.last_measured_orbit([1,2],:)');
xlabel('BPM #')
ylabel('[m]');
yyaxis right
plot(obj.last_measured_orbit(3,:)');
ylabel('sum signal');
if ~isempty(obj.last_measured_orbit)
plot(obj.last_measured_orbit([1,2],:)');
xlabel('BPM #')
ylabel('[m]');
yyaxis right
plot(obj.last_measured_orbit(3,:)');
ylabel('sum signal');
else
disp('no orbit has been measured since initialization');
end
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment