[programming] code fixes
This commit is contained in:
parent
cd90a132a6
commit
beab805065
@ -2,12 +2,12 @@ function plotsinewave(time, sine)
|
|||||||
% plot precomputed sinewave
|
% plot precomputed sinewave
|
||||||
% time: vector with timepoints
|
% time: vector with timepoints
|
||||||
% sine: corresponding vector with sinewave
|
% sine: corresponding vector with sinewave
|
||||||
if time(end)-time(1) <= 1.0
|
if time(end) - time(1) <= 1.0
|
||||||
plot(1000.0*time, sine);
|
plot(1000.0 * time, sine);
|
||||||
xlabel('Time [ms]');
|
xlabel('Time [ms]');
|
||||||
else
|
else
|
||||||
plot(time, sine);
|
plot(time, sine);
|
||||||
xlabel('Time [s]');
|
xlabel('Time [s]');
|
||||||
end
|
end
|
||||||
ylim([1.2*min(sine) 1.2*max(sine)]);
|
ylim([1.2 * min(sine) 1.2 * max(sine)]);
|
||||||
ylabel('Sinewave');
|
ylabel('Sinewave');
|
||||||
|
Reference in New Issue
Block a user