This repository has been archived on 2021-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
scientificComputing/programming/exercises/plotsine50.m

10 lines
186 B
Matlab

function plotsine50()
% plot a sine wave of 50Hz
time = 0:0.0001:0.2;
sine = sin(2*pi*50.0*time);
plot(1000.0*time, sine);
xlabel('Time [ms]');
ylim([-1.2 1.2]);
ylabel('Sinewave');
end