You need to remove ’exp’ and ‘j’ from your syms call:
syms t k w T
You want to use the function exp, and the imaginary operator j, so do not use them as variables. (Also, using 1j removes any additional ambiguity.)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!