[plotting] simple beginner's script

This commit is contained in:
Jan Grewe 2018-10-23 09:45:23 +02:00
parent ed5f323b25
commit 61bdeb160a

View File

@ -0,0 +1,8 @@
frequency = 5; % frequency of the sine wave in Hz
time = 0.01:0.01:1.0; % the time axis
signal = sin(2 * pi * time * frequency);
plot(time, signal);
xlabel('time [s]');
ylabel('signal');
title('5Hz sine wave')