%% Lab 0
%% Prep task 1
%
% Regularly spaced vector.

a = 1:10

% Elementwise operation.

b = a.^2

%
% 2-D plot with formatting.

plot(a, b, 'r')
title('y = x^2')
xlabel('x')
ylabel('y')
legend('x^2')

%
%% Prep task 2
% Change path to include auxiliary files.
% Read signal from simulink to workspace (using To Workspace block)

a = sin_sig;

% Plot signal & frequency spectra.

sigview(a)
sigspectrum(a)