MATLAB: Radial Basis Function Networks

MATLABneural network

I have a problem in this code:
Error using plot
Vectors must be the same length.
plot(t,ge);
t=-1:1/20:1; % time period
ge=0.4*cos(4*x).*exp(-0.5*x); % exact fucntion

Best Answer

Replace x with t
Thank you for formally accepting my answer
Greg