Blinking lights MSP430 FG461x

I have been working on MSP430 [] for sometime now. It is an TI ([Texas Instruments](,-96.751054&spn=

Sampling of a Sinusoidal Signal and finding the DTFT

The question was : Write a MATLAB [] function, x = SinSamples(A, w, θ, d, ws), that generates a discrete-time sinusoidal signal x[n] obtained by sampling x(t)