matlab - Taking fourier transform of a function using symbolic variable -


matlab failed compute fft of function:

syms t; x= 1/(1+t^2); x= fft(x) 

and threw error:

undefined function 'fft' input arguments of type 'sym'.

why didn't take fourier transform of symbolic variable? think should because may want obtain result symbolic value.

i tried solve problem non-symbolic variable.

t= -10:0.01:10; x= zeros(2001); x= 1/(1+t.^2); fft(x) 

this time error is:

matrix dimensions must agree.

however, have same dimensions. fault?

source: http://www.mathworks.com/matlabcentral/newsreader/view_thread/315950

fft method numerical discrete fourier transform (dft).

basically, you're asking doesn't make sense. fft designed work numerically on discrete data (a sequence of numbers).

what want fourier transform of symbolic expression. that, believe want fourier.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -