Using formula(curvefit) I can get the polynomial function of the curvefit to show in the command window.
I would like to use that polynomial equation togheter with a function handle, that comes from another function file, and pass them to a the solve function to solve for one of the two variables.
I_sc has variables x and y.
I_sc_max only has variable y (the same y as I_sc).
The second problem is that i want to use the solution (one of the solutions) from the solve function as a function handle.
Thanks for any help!
This code is my try at solving the problem but using the == sign doesn't work well with sfit.
Undefined function 'eq' for input arguments of type 'sfit'.
syms x y;
I_sc = curvefit;
I_sc_max = I_sc_max_function();
eqn = I_sc == I_sc_max;
S = solve( eqn, x );
func =@(y) S1;