Hello,
How do I pass arguments, vectors, or constants into fsolve? A simple example:
REF=[x,y,z] <-- I want this to pass into 'myfun' during fsolve[out,fval]=fsolve('myfun',y0)...function [Z]=myfun(y)Z=[ REF(1)*y(1) + REF(2); REF(3)*y(2) - REF(2)];
I am trying to avoid using globals.
Best Answer