getting an error while trying to do fourier transform. my code:
clc;
clear all;
close all;
syms A1 B1 C1 D1 w;
%% define
t = -4:1/100:4;
wm=3*pi;
z=t-(pi/wm);
a=1./(pi*z);
b=sinc(2*wm*z);
c=sinc(wm*z);
A1=fourier(a,z,w);
B1=fourier(b,z,w);
C1=fourier(c,z,w);
D1=fourier(a,z,w);
and the error is:
Undefined function 'fourier' for input arguments of type 'double'.
Error in h2 (line 13)
A1=fourier(a,z);
When I check for "which fourier" to see if I have it, MATLAB is able to give the correct location of the fourier.m on my system. Then why is this occurring?
ver. – Steffen Nov 14 '14 at 08:48