I am trying to build in function, including equation which is a result of another code,
I understand function is a separate script but I just need to do something smart, no to add the equation in every time ,
below is the code:
syms x y;
x=input('please enter number ')
yin(:,1)=input('Enter equation to solve ')
When I type an: I got an error ?, however, when I type equation, it works, so could anyone please help me, how could I introduce that to the function ?