Tensorflow simple neural network has very bad performance in regression (curve fitting) problem
I am not sure which network training function is your MATLAB feedforwardnet is using. Also, most likely the activation function in your MATLAB net is 'tansig'. Try using 'tanh' activation function in your python/keras code.