MATLAB: Graphing a complex exponential

complex exponential functionsmathematics

so i am trying to graph this complex exponential and i keep getting errors in the portion of the code for the exponential(says possibly missing ')' ). the function is
e^((i*pi)/6t)
where t is my time vector t= 0:0.1:10;
Would some mind lending a hand.

Best Answer

exp(1i*pi/6./t)
or
exp(1i*pi/6.*t)
depending on whether the t is intended to be in the numerator or denominator