[plotting] simple beginner's script
This commit is contained in:
parent
ed5f323b25
commit
61bdeb160a
8
plotting/code/simple_plot.m
Normal file
8
plotting/code/simple_plot.m
Normal 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')
|
Reference in New Issue
Block a user