plot the reference waveform for comparison of 2.5\ sin(\ 4\pi(0.4)+180) = 72 degree in matlab

main.m
% Define the time vector
t = linspace(0, 1, 1000);

% Compute the reference waveform
y = 2.5 * sin(4 * pi * 0.4 * t + deg2rad(180));

% Plot the reference waveform
plot(t, y);
xlabel('Time');
ylabel('Amplitude');
title('Reference Waveform');
242 chars
12 lines

related categories

gistlibby LogSnag