f=@(x1,x2) 2*x1^2+x2^2+2*x1*x2+x1-x2;x1=0; x2=1;X=[x1;x2];How to evaluate function using vector X..?f(X) is not working.
MATLAB: How to evaluate two variable function…
equationfunctionMATLAB
equationfunctionMATLAB
f=@(x1,x2) 2*x1^2+x2^2+2*x1*x2+x1-x2;x1=0; x2=1;X=[x1;x2];How to evaluate function using vector X..?f(X) is not working.
Best Answer