SyntaxFix
Write A Post
Hire A Developer
Questions
If t is a matrix, you need to use the element-wise multiplication or exponentiation. Note the dot.
t
x = exp( -t.^2 )
or
x = exp( -t.*t )