I wrote the following function 'fun_phi1'; I called this function as follows
it is showing the message 'optimization terminated' infinitely. the message is not stopping.
please correct the mistake in coding.
function [ fval ] = fun_phi1(y)